Created
July 4, 2016 20:39
-
-
Save outout14/00de649b9809998dd28fed93f6fe7072 to your computer and use it in GitHub Desktop.
Bot simple pour discord. Penser modifier le token
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import discord | |
| import asyncio | |
| client = discord.Client() | |
| token = "Token ici" | |
| @client.event | |
| async def on_ready(): | |
| print('Connecté en tant que') | |
| print(client.user.name) | |
| print(client.user.id) | |
| print('------------') | |
| @client.event | |
| async def on_message(message): | |
| if message.content.startswith('!test'): | |
| tmp = await client.send_message(message.channel, "Hello world...") | |
| client.run('token') |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Merci de retirer les ' en bas