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
Added more helpful things in the console to aid me with supporting people and not having to make them run a bunch of commands, plus now you can easily invite your bot.
# These are the dependecies. The bot depends on these to function, hence the name. Please do not change these unless your adding to them.
1
+
# These are the dependecies. The bot depends on these to function, hence the name. Please do not change these unless your adding to them, because they can break the bot.
2
2
importdiscord
3
3
importasyncio
4
4
fromdiscord.ext.commandsimportBot
5
5
fromdiscord.extimportcommands
6
+
importplatform
6
7
7
8
# Here you can modify the bot's prefix and description and wether it sends help in direct messages or not.
8
9
client=Bot(description="Basic Bot by Habchy#1665", command_prefix="PUT YOUR PREFIX HERE", pm_help=True)
9
10
10
11
# 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.
12
+
# Do not mess with it because the bot can break, if you wish to do so, please consult me or someone trusted.
11
13
@client.event
12
14
asyncdefon_ready():
13
15
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')
14
16
print('--------')
17
+
print('Current Discord.py Version: {} | Current Python Version: {}'.format(discord.__version__, platform.python_version()))
18
+
print('--------')
19
+
print('Use this link to invite {}:'.format(client.user.name))
awaitclient.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!")
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.
34
+
# After you have modified the code, feel free to delete the line above (line 33) so it does not keep popping up everytime you initiate the ping commmand.
27
35
28
36
client.run('PUT YOUR BOT TOKEN HERE')
29
37
30
38
# Basic Bot was created by Habchy#1665
31
39
# Please join this Discord server if you need help: https://discord.gg/FNNNgqb
32
40
# Please modify the parts of the code where it asks you to. Example: The Prefix or The Bot Token
33
41
# This is by no means a full bot, it's more of a starter to show you what the python language can do in Discord.
34
-
# Thank you for using this and don't forget to star my repo on GitHub!
42
+
# Thank you for using this and don't forget to star my repo on GitHub! [Repo Link: https://github.com/Habchy/BasicBot]
35
43
36
44
# The help command is currently set to be Direct Messaged.
37
45
# If you would like to change that, change "pm_help = True" to "pm_help = False" on line 14.
0 commit comments