Skip to content

Commit 5e1e75c

Browse files
authored
not supported anymore
This is just a place holder, it is not supported anymore by me. Please get the download link from the tutorial on Step 4 or visit the link below. Latest Version: https://github.com/Habchy/BasicBot/releases/latest
1 parent a618831 commit 5e1e75c

File tree

1 file changed

+5
-45
lines changed

1 file changed

+5
-45
lines changed

Basic Bot.py

Lines changed: 5 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,5 @@
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-
import discord
3-
import asyncio
4-
from discord.ext.commands import Bot
5-
from discord.ext import commands
6-
import platform
7-
8-
# Here you can modify the bot's prefix and description and wether it sends help in direct messages or not.
9-
client = Bot(description="Basic Bot by Habchy#1665", command_prefix="PUT YOUR PREFIX HERE", pm_help = True)
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.
13-
@client.event
14-
async def on_ready():
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')
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))
20-
print('https://discordapp.com/oauth2/authorize?client_id={}&scope=bot&permissions=8'.format(client.user.id))
21-
print('--------')
22-
print('Support Discord Server: https://discord.gg/FNNNgqb')
23-
print('Github Link: https://github.com/Habchy/BasicBot')
24-
print('--------')
25-
print('Created by Habchy#1665')
26-
27-
# This is a basic example of a call and response command. You tell it do "this" and it does it.
28-
@client.command()
29-
async def ping(*args):
30-
31-
await client.say(":ping_pong: Pong!")
32-
await asyncio.sleep(3)
33-
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!")
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.
35-
36-
client.run('PUT YOUR BOT TOKEN HERE')
37-
38-
# Basic Bot was created by Habchy#1665
39-
# Please join this Discord server if you need help: https://discord.gg/FNNNgqb
40-
# Please modify the parts of the code where it asks you to. Example: The Prefix or The Bot Token
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.
42-
# Thank you for using this and don't forget to star my repo on GitHub! [Repo Link: https://github.com/Habchy/BasicBot]
43-
44-
# The help command is currently set to be Direct Messaged.
45-
# If you would like to change that, change "pm_help = True" to "pm_help = False" on line 14.
1+
#This is just a place holder, it is not supported anymore by me.
2+
#
3+
#Please get the download link from the tutorial on Step 4 or visit the link below.
4+
#
5+
#Latest Version: https://github.com/Habchy/BasicBot/releases/latest

0 commit comments

Comments
 (0)