You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 20, 2023. It is now read-only.
embed=discord.Embed(title="PING", description=f":ping_pong: Pingpingpingpingping! The ping is **{round(client.latency*1000)}** milliseconds!", color=0x44ff44)
62
+
elifround(client.latency*1000) <=100:
63
+
embed=discord.Embed(title="PING", description=f":ping_pong: Pingpingpingpingping! The ping is **{round(client.latency*1000)}** milliseconds!", color=0xffd000)
64
+
elifround(client.latency*1000) <=200:
65
+
embed=discord.Embed(title="PING", description=f":ping_pong: Pingpingpingpingping! The ping is **{round(client.latency*1000)}** milliseconds!", color=0xff6600)
66
+
else:
67
+
embed=discord.Embed(title="PING", description=f":ping_pong: Pingpingpingpingping! The ping is **{round(client.latency*1000)}** milliseconds!", color=0x990000)
68
+
awaitctx.send(embed=embed)
69
+
70
+
71
+
#weclome message dm
72
+
@client.event
73
+
asyncdefon_member_join(member, ctx):
74
+
awaitctx.author.send("```Hello there!```")
75
+
76
+
77
+
#membercount
78
+
@bot.command()
79
+
asyncdefmembercount(ctx):
80
+
"""Check the server membercount!"""
81
+
embed=discord.Embed(
82
+
title=('Membercount'),
83
+
description=(f'There are currently **{ctx.guild.member_count}** members in the server!'),
84
+
85
+
color=discord.Colour.dark_blue()
86
+
)
87
+
embed.set_footer(text='QWERTY')
88
+
embed.set_thumbnail(url='')
89
+
awaitctx.send(embed=embed)
90
+
91
+
92
+
#bot-commands
93
+
@bot.command(aliases=['about'])
94
+
asyncdefinfo(ctx):
95
+
"""About the bot!"""
96
+
embed=discord.Embed(
97
+
title=('Info'),
98
+
description=(f'A Discord bot made by QwertyIsThinking#1587 for moderation and for fun! It is self hosted and is made with Discord.py!'),
99
+
100
+
color=discord.Colour.dark_blue()
101
+
)
102
+
embed.set_footer(text='QWERTY')
103
+
embed.set_thumbnail(url='')
104
+
awaitctx.send(embed=embed)
105
+
106
+
107
+
#bot invite
108
+
@bot.command(pass_context=True)
109
+
asyncdefinvite(ctx):
110
+
"""Invite this bot to your server!"""
111
+
112
+
embed=discord.Embed(
113
+
title=('Invite'),
114
+
description=(f'Here is the invitation link: https://discord.com/api/oauth2/authorize?client_id=927841410319781908&permissions=449160039488&scope=bot'),
115
+
116
+
color=discord.Colour.dark_blue()
117
+
)
118
+
embed.set_footer(text='QWERTY')
119
+
embed.set_thumbnail(url='')
120
+
awaitctx.send(embed=embed)
121
+
122
+
#test the bot to see if it is online
123
+
@bot.command(aliases=['test'])
124
+
asyncdefstatus(ctx):
125
+
"""Is the bot okay?"""
126
+
embed=discord.Embed(
127
+
title=('Status'),
128
+
description=(f'The bot is online and everything SEEMS to be fine!'),
129
+
130
+
color=discord.Colour.dark_blue()
131
+
)
132
+
embed.set_footer(text='QWERTY')
133
+
embed.set_thumbnail(url='')
134
+
awaitctx.send(embed=embed)
135
+
136
+
#your discord server invite, in this case, it is my discord server invite
137
+
@bot.command(pass_context=True)
138
+
asyncdefserver(ctx):
139
+
"""The creator's main server!"""
140
+
awaitctx.channel.send('Here is the server invite for main server: https://discord.gg/JE2AfPm2Yu')
141
+
142
+
#the discord bot support server, you can make your own support server if you are the one hosting it
143
+
@bot.command(pass_context=True)
144
+
asyncdefsupport(ctx):
145
+
"""Support server!"""
146
+
awaitctx.channel.send('Here is the support server link: https://discord.gg/7RSxKSaN68')
147
+
@bot.command(pass_context=True)
148
+
149
+
#owner
150
+
@commands.is_owner()
151
+
asyncdefowner(ctx):
152
+
"""Shows if you are the true owner of the bot or not."""
153
+
awaitctx.channel.send('```If you executed this command, then you are the owner of this bot!```')
# When a member joins, the bot DM's them a message
234
+
@client.event
235
+
asyncdefon_member_join(member):
236
+
awaitclient.send_message(member, 'Welcome to the server {}, Enjoy your stay! Also, Check out the rules and feel free to take prt in server events!'.format(member.name))
0 commit comments