-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.py
108 lines (91 loc) · 3.2 KB
/
main.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import discord
from discord.ext import commands
import os
import random
intents = discord.Intents.default()
intents.message_content = True
client = commands.Bot(command_prefix='_', intents=intents, help_command=None)
@client.event
async def on_ready():
await client.change_presence(activity=discord.Playing(name="_help"))
print(f'We have infiltrated the headquarters as {client.user}')
@client.command()
async def ping(ctx):
await ctx.send("Pong!")
#help command start
@client.command()
async def help(ctx):
em = discord.Embed(title=f"# Help Panel",description=f'''## Commands:
?help - shows all commands
?kik - Fake kick
?bam - Fake ban
-------------------------
***BETA COMMANDS:***
?say - this says something
-------------------------
**DEV COMMANDS**
?kick - This is for kicking users
?ban - This is for banning users
-------------------------
made by **alpha4TW** and **legendaryfishwastaken(legendary.fish)**''')
await ctx.send(embed=em)
#help command end
#say command start
@client.command()
async def say(ctx, msg=None):
if ctx.author.id == 773204048751886377 or ctx.author.id == 701621878631956572:
await ctx.send(msg)
else:
await ctx.send('<:chuckle:1282380972087574609>')
#say command end
#kick command start
@client.command()
@commands.has_guild_permissions(kick_members=True)
async def kick(ctx, member:discord.Member, reason=None):
await ctx.guild.kick(member)
if reason == None:
em = discord.Embed(title=f"User {member.mention} Kicked")
await ctx.send(embed=em)
else:
em = discord.Embed(title=f"User {member.mention} Kicked", description=f"Reason: {reason}")
await ctx.send(embed=em)
#kick command end
#ban command start
@client.command()
@commands.has_guild_permissions(ban_members=True)
async def ban(ctx, member:discord.Member, reason=None):
await ctx.guild.ban(member)
if reason == None:
em = discord.Embed(title=f"User {member.mention} Banned")
await ctx.send(embed=em)
else:
em = discord.Embed(title=f"User {member.mention} Banned", description=f"Reason: {reason}")
await ctx.send(embed=em)
#ban command end
#kik command start
@client.command()
async def kik(ctx, member:discord.Member, reason=None):
if reason == None:
em = discord.Embed(title=f"User {member.mention} Kicked")
await ctx.send(embed=em)
else:
em = discord.Embed(title=f"User {member.mention} Kicked", description=f"Reason: {reason}")
await ctx.send(embed=em)
#kik command end
#bam command start
@client.command()
async def bam(ctx, member:discord.Member, reason=None):
if reason == None:
em = discord.Embed(title=f"User {member.mention} Banned")
await ctx.send(embed=em)
else:
em = discord.Embed(title=f"User {member.mention} Banned", description=f"Reason: {reason}")
await ctx.send(embed=em)
#bam command end
#randomnumber command start
@client.command()
async def randomnumber(ctx, num1, num2)
em = discord.Embed(randint(num1, num2), description=f"Number that was generated from "+num1+" to "+num2+".")
await ctx.send(embed=em)
#randomnumber command end
client.run(os.environ['DISCORD_TOKEN'])