-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpokecord-autotype.py
37 lines (28 loc) · 929 Bytes
/
pokecord-autotype.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import discord
import asyncio
import json
import time
client = discord.Client()
@client.event
async def on_message(message):
if message.content.startswith('!hello'):
msg = 'Hello {0.author.mention}'.format(message)
await client.send_message(message.channel, msg)
if message.author.id == 'your user id' and message.content.startswith('!grinding'):
loader = False
if message.content.startswith('!grindingstart'):
loader = True
spam = message.content.split(' ')[1]
if message.content.startswith('!grindingstop'):
loader = False
spam = 'aw'
while True:
await client.send_message(message.channel, spam)
time.sleep(1)
@client.event
async def on_ready():
print('Logged in as')
print(client.user.name)
print(client.user.id)
print('------')
client.run('token', bot=False)