Skip to content

Instantly share code, notes, and snippets.

@ensup
Last active July 27, 2019 07:18
Show Gist options
  • Save ensup/91d90340bbd3618fff8b4ce831b26063 to your computer and use it in GitHub Desktop.
Save ensup/91d90340bbd3618fff8b4ce831b26063 to your computer and use it in GitHub Desktop.
Chard Bot II
import discord
import random
class MyClient(discord.Client):
async def on_ready(self):
print('Logged on as', self.user)
async def on_message(self, message):
# don't respond to ourselves
if message.author == self.user:
return
if message.content == '!help':
await message.channel.send('이클립스 만세!\n!퍽 - 펀치기계를 때리고 점수를 얻습니다.')
if message.content == '!퍽':
num = random.randrange(1, 101)
await message.channel.send(num)
if message.content == '!이클립스':
await message.channel.send('이클립스 만세')
if message.content == '!code':
await message.channel.send('https://gist.github.com/ensup/91d90340bbd3618fff8b4ce831b26063')
client = MyClient()
client.run('token')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment