Compare commits
	
		
			No commits in common. "2b8d0a6b15808d3b65e1948ac03077fba7c295e2" and "8f74565abd80da2192d0c80491060d49d37d0629" have entirely different histories.
		
	
	
		
			2b8d0a6b15
			...
			8f74565abd
		
	
		
					 1 changed files with 0 additions and 11 deletions
				
			
		
							
								
								
									
										11
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								main.py
									
									
									
									
									
								
							| 
						 | 
					@ -1,13 +1,6 @@
 | 
				
			||||||
#!/usr/bin/env python3
 | 
					#!/usr/bin/env python3
 | 
				
			||||||
from discord.ext import commands
 | 
					from discord.ext import commands
 | 
				
			||||||
import utils.data as data
 | 
					import utils.data as data
 | 
				
			||||||
import logging
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
logger = logging.getLogger('discord')
 | 
					 | 
				
			||||||
logger.setLevel(logging.INFO)
 | 
					 | 
				
			||||||
handler = logging.FileHandler(filename='discord.log', encoding='utf-8', mode='w')
 | 
					 | 
				
			||||||
handler.setFormatter(logging.Formatter('%(asctime)s:%(levelname)s:%(name)s: %(message)s'))
 | 
					 | 
				
			||||||
logger.addHandler(handler)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
CONFIG = data.load_json("config")
 | 
					CONFIG = data.load_json("config")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,8 +15,4 @@ cogs_list = [
 | 
				
			||||||
for cog in cogs_list:
 | 
					for cog in cogs_list:
 | 
				
			||||||
    bot.load_extension(f'cogs.{cog}')
 | 
					    bot.load_extension(f'cogs.{cog}')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@bot.listen('on_interaction')
 | 
					 | 
				
			||||||
async def statistics(interaction):
 | 
					 | 
				
			||||||
    logger.info(f"{interaction.user} ({interaction.user.id}) used command {interaction.data['name']}.")
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
bot.run(CONFIG["token"])
 | 
					bot.run(CONFIG["token"])
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue