Skip to content

Commit 2868ff8

Browse files
authored
Update Basic Bot.py
1 parent ae41019 commit 2868ff8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Basic Bot.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,16 @@
55
from discord.ext import commands
66

77
# Here you can modify the bot's prefix and description and wether it sends help in direct messages or not.
8-
client = Bot (description="Basic Bot by Habchy#1665", command_prefix="PUT YOUR PREFIX HERE", pm_help = True)
8+
client = Bot(description="Basic Bot by Habchy#1665", command_prefix="PUT YOUR PREFIX HERE", pm_help = True)
99

10-
# This is what happens everytime the bot launches. In this case, it prints information like server count and bot id in the console.
10+
# This is what happens everytime the bot launches. In this case, it prints information like server count, user count the bot is connected to, and the bot id in the console.
1111
@client.event
1212
async def on_ready():
13-
print('Logged in as '+client.user.name+' (ID:'+client.user.id+') | Connected to '+str(len(client.servers))+' servers')
13+
print('Logged in as '+client.user.name+' (ID:'+client.user.id+') | Connected to '+str(len(client.servers))+' servers | Connected to '+str(len(set(client.get_all_members())))+' users')
1414
print('--------')
1515
print('Support Discord Server: https://discord.gg/FNNNgqb')
1616
print('--------')
1717
print('Created by Habchy#1665')
18-
1918

2019
# This is a basic example of a call and response command. You tell it do "this" and it does it.
2120
@client.command()
@@ -24,7 +23,7 @@ async def ping(*args):
2423
await client.say(":ping_pong: Pong!")
2524
await asyncio.sleep(3)
2625
await client.say(":warning: This bot was created by **Habchy#1665**, it seems that you have not modified it yet. Go edit the file and try it out!")
27-
# After you have modified the code, feel free to delete the line above (line 34) so it does not keep popping up everytime you initiate the ping commmand.
26+
# After you have modified the code, feel free to delete the line above (line 25) so it does not keep popping up everytime you initiate the ping commmand.
2827

2928
client.run('PUT YOUR BOT TOKEN HERE')
3029

0 commit comments

Comments
 (0)