Skip to content

Instantly share code, notes, and snippets.

@outout14
Created July 4, 2016 20:39
Show Gist options
  • Save outout14/00de649b9809998dd28fed93f6fe7072 to your computer and use it in GitHub Desktop.
Save outout14/00de649b9809998dd28fed93f6fe7072 to your computer and use it in GitHub Desktop.
Bot simple pour discord. Penser modifier le token
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')
@outout14
Copy link
Author

outout14 commented Jul 4, 2016

Merci de retirer les ' en bas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment