Initialisation de bot pour Battle4Suisse
This commit is contained in:
		
							
								
								
									
										5
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| __pycache__ | ||||
|  | ||||
| .venv/ | ||||
|  | ||||
| config.py | ||||
							
								
								
									
										18
									
								
								bot.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								bot.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| #!/usr/bin/env python3 | ||||
|  | ||||
| import discord | ||||
| from discord.ext import commands | ||||
|  | ||||
| from config import * | ||||
|  | ||||
|  | ||||
| intents = discord.Intents.default() | ||||
| intents.message_content = True | ||||
|  | ||||
| bot = commands.Bot(command_prefix='$', intents=intents) | ||||
|  | ||||
| @bot.command() | ||||
| async def test(ctx): | ||||
|     await ctx.send("Hello world!") | ||||
|  | ||||
| bot.run(DISCORD_TOKEN) | ||||
							
								
								
									
										1
									
								
								requirements.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								requirements.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| discord.py | ||||
		Reference in New Issue
	
	Block a user