Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- token = ''
- guild = 'Test'
- lottery = ['4753672', '3963852', '3092670', '9346897', '1234567', ]
- x = random.choice(lottery)
- client = discord.Client()
- @client.event
- async def on_ready():
- print(f'{client.user} has connected to Discord!')
- @client.event
- async def on_message(message):
- if message.author == client.user:
- return
- if message.content == '$lottery':
- response = (x)
- lottery.remove(x)
- await message.channel.send(response)
- client.run(token)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement