-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGoodByeWorld.py
More file actions
33 lines (22 loc) · 1.28 KB
/
GoodByeWorld.py
File metadata and controls
33 lines (22 loc) · 1.28 KB
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
import discord
from discord import Client
from discord.ext import commands
image = "https://i1.wp.com/newkidotblog.com/wp-content/uploads/2018/05/HelloWorld.png?w=1328"
Client: Client = discord.Client()
client = commands.Bot(command_prefix='!')
@Client.event
async def on_ready():
print('Logged in as:')
print(Client.user.name)
print(Client.user.id)
@Client.event
async def on_message(message):
msg = await Client.send_message(message.channel, " HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD ")
res = await Client.wait_for_reaction([':👍:', ':👎:'], message=msg)
await Client.send_message(message.channel, '{0.user} reacted with {0.reaction.emoji}!'.format(res), embed=e)
@Client.event
async def on_reaction_add(reaction, user):
channel = reaction.message.channel
await Client.send_message(channel, "https://i1.wp.com/newkidotblog.com/wp-content/uploads/2018/05/HelloWorld.png?w=1328")
# 'Hello reactied with World from: goodbye world'.format(user.name, reaction.emoji, reaction.message.channel) )
Client.run("NTE4NDcyODM5MTM4MTE1NTg0.DuRd6g.-xQmINv-UT8gQ0-wAy_2KmMN-r4")