Skip to content

moulid15/Birthday_Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Birthday_Bot

This discord bot notifies all users when it is someones birthday.Also get there age and birthday that they gave the bot.
This bot also alerts all users in the server if it is someone's birthday.

Commands:

.mybirthday Month day,year - you must do this to put you birthday before anything. arguments example March 2, 1998

.age @user - this gives all the mentioned users age: Example: .age @snow @user2 @user3 for multiple user's age

.born - to get your own birthday

.myage - to get your own age

.author birth - to get my birthday

.author age - to get my age

.birthday @user - to get some users birthday

Invite bot to a server

https://discordapp.com/api/oauth2/authorize?client_id=596012231637073921&permissions=8&scope=bot

using this code

Install before running

pip3 install discord.py

clone

git clone https://github.com/moulid15/Birthday_Bot.git

set up your token on linux

cdto go home

vi .bashrc

In the .bashrc file replace {token from discord} with your token

export token='{token from discord}



press i to enter vim, then add the the above script. for {token} you should have the name of your environment variable in your .bashrc

token = os.environ.get('{token}')

set up your token on macOS

cdto go home

In the .bash_profile file put replace {token from discord} with your token

vi .bash_profile



press i to enter vim, then add the script below and after you want to do the same in the terminal

export token='{token from discord}

for {token} you should have the name of your environment variable in your .bash_profile file

token = os.environ.get('{token}')

Running the bot

python3 finalProduct.py

This will run the bot