d2dd31de63
Make __main__ template strings private
2021-08-22 02:42:08 -04:00
cc6edccc0c
Make the bot template use f-strings over str.format
2021-04-07 21:38:01 -04:00
4d44872511
Remove encoding header from generated code
2021-04-04 07:06:50 -04:00
9d39b135f4
Modernize code to use f-strings
...
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
2021-04-04 07:03:53 -04:00
c325918ae6
Only run main() if the module is being executed as a script
2021-02-28 23:33:18 -05:00
73a783cd6b
Strip both - and _ from newcog class names
2021-01-15 05:34:05 -05:00
69bdc3a184
Change copyright year to present
2021-01-15 05:28:11 -05:00
b8154e365f
Rewrite gateway to use aiohttp instead of websockets
2020-07-25 09:59:38 -04:00
6071607176
Bump copyright year to 2020
...
Closes #2510
2020-01-19 20:03:00 -05:00
4843f61eaf
Make discord --version a bit more helpful.
2019-04-16 18:13:57 -04:00
2fe42d5e81
Remove Python 3.5 check in __main__.py
2019-04-16 17:35:04 -04:00
11a0098269
Add new cog methods
...
Added two new arguments to the parser, and updated defunct cog code.
Remove debug
remove print statement
2019-02-26 08:41:00 -05:00
9656a21ebe
Bumped copyright years to 2019.
2019-01-28 22:22:50 -05:00
efb4ff850e
[lint] Fix import order
...
Reorder imports to be consistenly grouped by standard library, third
party library, and local modules in that order thoughout the library.
2018-11-24 22:17:58 -05:00
fa46b07db1
[lint] Rename exception variables to exc
...
Use the more explicit (and common) exc instead of e as the variable
holding the exception in except handlers.
2018-11-24 22:17:57 -05:00
c8b49d37be
[lint] Fix incorrect and inconsistent whitespace
...
Adjust whitespace to be consistent with the rest of the library.
2018-08-22 21:43:53 -04:00
d58fc0ccee
[lint] Remove unused imports
...
Left over from various refactoring and rewrites.
2018-08-22 21:43:50 -04:00
c23ef9e8a4
[commands] Add __global_check_once to list of cog functions.
2017-06-20 23:55:17 -04:00
02d854a99c
Fix format string in new bot template.
2017-05-17 19:48:51 -04:00
8aa04b7084
First pass at having a __main__ file.
...
This allows you to generate templates and projects easily. Its main
purpose is to be easy to use for beginners in the upcoming
documentation.
Two new commands are added:
* newbot
* creates a new bot template using a name and optional directory
* newcog
* creates a new cog template using a name and optional directory
2017-05-17 05:53:24 -04:00