-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcore.py
More file actions
54 lines (35 loc) · 1.1 KB
/
Copy pathcore.py
File metadata and controls
54 lines (35 loc) · 1.1 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import discord
from discord.ext import commands
import config
bot = commands.Bot(command_prefix='!')
@bot.event
async def on_ready():
print("Logged in as {0.user}".format(bot))
print("Client ID: {0.user.id}".format(bot))
print("-----------------------------------------")
@bot.event
async def on_message(message):
if message.author == bot.user:
return
user = message.author
msg = message.content
try:
print(f"{user} said {msg}")
except UnicodeEncodeError:
print(f"{user.id} said {msg}")
await bot.process_commands(message)
@bot.command()
async def testembed(ctx):
emebed = discord.Embed(title="Title", description="dess", color=discord.Color)
@bot.command()
async def annoy(ctx, member: discord.Member):
await ctx.message.delete()
for i in range(100):
await member.send("BAISSE D'UN TON")
@bot.command(aliases=["dit-moi-ca"])
async def say(ctx, *, words):
await ctx.send(words)
@bot.command()
async def ping(ctx):
await ctx.send("message")
bot.run(config.TOKEN)