Rapptz 
							
						 
					 
					
						
						
							
						
						44a44e938f 
					 
					
						
						
							
							Reformat entire project with ruff instead of black  
						
						 
						
						
						
						
					 
					
						2025-08-18 20:16:10 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Eric Schneider 
							
						 
					 
					
						
						
							
						
						52967ec103 
					 
					
						
						
							
							Fix path sanitation for absolute Windows paths  
						
						 
						
						... 
						
						
						
						When using an absolute Windows path (e.g. `C:\Users\USER\Documents\`)
for the `newbot` command the translation table replaced the valid `:`
character in the drive causing it to create the directory at the wrong
place.
Fixes  #10096  
						
						
					 
					
						2025-02-08 21:08:45 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								oDepleted 
							
						 
					 
					
						
						
							
						
						bc87715463 
					 
					
						
						
							
							Trim trailing whitespace in cog template  
						
						 
						
						
						
						
					 
					
						2023-09-16 18:32:11 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rapptz 
							
						 
					 
					
						
						
							
						
						7c1dffbf9d 
					 
					
						
						
							
							Use importlib.metadata instead of pkg_resources  
						
						 
						
						
						
						
					 
					
						2022-08-26 12:00:46 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Server Bot 
							
						 
					 
					
						
						
							
						
						fb8d5c15d0 
					 
					
						
						
							
							Add cog_app_command_error to python -m newcog  
						
						 
						
						
						
						
					 
					
						2022-07-24 20:30:04 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								tomy 
							
						 
					 
					
						
						
							
						
						781b297ac9 
					 
					
						
						
							
							Add intents to python -m discord newbot  
						
						 
						
						
						
						
					 
					
						2022-05-12 22:10:50 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								jack1142 
							
						 
					 
					
						
						
							
						
						86de926678 
					 
					
						
						
							
							Print help when no args are provided to python -m discord  
						
						 
						
						
						
						
					 
					
						2022-04-03 01:20:55 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stocker 
							
						 
					 
					
						
						
							
						
						5aa696ccfa 
					 
					
						
						
							
							Fix typing issues and improve typing completeness across the library  
						
						 
						
						... 
						
						
						
						Co-authored-by: Danny <Rapptz@users.noreply.github.com >
Co-authored-by: Josh <josh.ja.butt@gmail.com > 
						
						
					 
					
						2022-03-13 23:52:10 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Josh 
							
						 
					 
					
						
						
							
						
						a1c618215e 
					 
					
						
						
							
							[commads] Change cog/extension load/unload methods to be async  
						
						 
						
						
						
						
					 
					
						2022-03-13 21:03:45 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rapptz 
							
						 
					 
					
						
						
							
						
						fc4e5d6237 
					 
					
						
						
							
							Fix type checker error in discord.__main__  
						
						 
						
						
						
						
					 
					
						2022-03-07 18:10:40 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rapptz 
							
						 
					 
					
						
						
							
						
						88b520b5ab 
					 
					
						
						
							
							Reformat code using black  
						
						 
						
						... 
						
						
						
						Segments where readability was hampered were fixed by appropriate
format skipping directives. New code should hopefully be black
compatible. The moment they remove the -S option is probably the moment
I stop using black though. 
						
						
					 
					
						2022-02-20 08:04:58 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rapptz 
							
						 
					 
					
						
						
							
						
						d2dd31de63 
					 
					
						
						
							
							Make __main__ template strings private  
						
						 
						
						
						
						
					 
					
						2021-08-22 02:42:08 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Kallum 
							
						 
					 
					
						
						
							
						
						cc6edccc0c 
					 
					
						
						
							
							Make the bot template use f-strings over str.format  
						
						 
						
						
						
						
					 
					
						2021-04-07 21:38:01 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rapptz 
							
						 
					 
					
						
						
							
						
						4d44872511 
					 
					
						
						
							
							Remove encoding header from generated code  
						
						 
						
						
						
						
					 
					
						2021-04-04 07:06:50 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rapptz 
							
						 
					 
					
						
						
							
						
						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  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Bryan Forbes 
							
						 
					 
					
						
						
							
						
						c325918ae6 
					 
					
						
						
							
							Only run main() if the module is being executed as a script  
						
						 
						
						
						
						
					 
					
						2021-02-28 23:33:18 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Josh 
							
						 
					 
					
						
						
							
						
						73a783cd6b 
					 
					
						
						
							
							Strip both - and _ from newcog class names  
						
						 
						
						
						
						
					 
					
						2021-01-15 05:34:05 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nihaal Sangha 
							
						 
					 
					
						
						
							
						
						69bdc3a184 
					 
					
						
						
							
							Change copyright year to present  
						
						 
						
						
						
						
					 
					
						2021-01-15 05:28:11 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rapptz 
							
						 
					 
					
						
						
							
						
						b8154e365f 
					 
					
						
						
							
							Rewrite gateway to use aiohttp instead of websockets  
						
						 
						
						
						
						
					 
					
						2020-07-25 09:59:38 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rapptz 
							
						 
					 
					
						
						
							
						
						6071607176 
					 
					
						
						
							
							Bump copyright year to 2020  
						
						 
						
						... 
						
						
						
						Closes  #2510  
						
						
					 
					
						2020-01-19 20:03:00 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rapptz 
							
						 
					 
					
						
						
							
						
						4843f61eaf 
					 
					
						
						
							
							Make discord --version a bit more helpful.  
						
						 
						
						
						
						
					 
					
						2019-04-16 18:13:57 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rapptz 
							
						 
					 
					
						
						
							
						
						2fe42d5e81 
					 
					
						
						
							
							Remove Python 3.5 check in __main__.py  
						
						 
						
						
						
						
					 
					
						2019-04-16 17:35:04 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								NCPlayz 
							
						 
					 
					
						
						
							
						
						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  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Dante Dam 
							
						 
					 
					
						
						
							
						
						9656a21ebe 
					 
					
						
						
							
							Bumped copyright years to 2019.  
						
						 
						
						
						
						
					 
					
						2019-01-28 22:22:50 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Hornwitser 
							
						 
					 
					
						
						
							
						
						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  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Hornwitser 
							
						 
					 
					
						
						
							
						
						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  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Hornwitser 
							
						 
					 
					
						
						
							
						
						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  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Hornwitser 
							
						 
					 
					
						
						
							
						
						d58fc0ccee 
					 
					
						
						
							
							[lint] Remove unused imports  
						
						 
						
						... 
						
						
						
						Left over from various refactoring and rewrites. 
						
						
					 
					
						2018-08-22 21:43:50 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rapptz 
							
						 
					 
					
						
						
							
						
						c23ef9e8a4 
					 
					
						
						
							
							[commands] Add __global_check_once to list of cog functions.  
						
						 
						
						
						
						
					 
					
						2017-06-20 23:55:17 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rapptz 
							
						 
					 
					
						
						
							
						
						02d854a99c 
					 
					
						
						
							
							Fix format string in new bot template.  
						
						 
						
						
						
						
					 
					
						2017-05-17 19:48:51 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Rapptz 
							
						 
					 
					
						
						
							
						
						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