Skip to content

Tip friends, create and host challenges using TNBC with maakay discord bot.

Notifications You must be signed in to change notification settings

maakay-com/maakay-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maakay Bot

Tip friends and create/ host challenges

About Maakay bot

Maakay-bot is a discord bot made to expand the use TNBC(The new boston coin) around the gaming community by introducing shiny commands specific to gamers. Read below to know more!

Invite the discord bot into your discord server: https://discord.com/api/oauth2/authorize?client_id=893822255816118332&permissions=268435456&scope=bot%20applications.commands

Staging Discord Bot Invite Link: https://discord.com/api/oauth2/authorize?client_id=891676665770541066&permissions=268435456&scope=bot%20applications.commands

Contributing

Clone the repo.

Activate the virtual environment.

Install all the requirements using pip install -r requirements.txt

Set the required environment variables.

DJANGO_SETTINGS_MODULE  # config.settings.development
MAAKAY_PAYMENT_ACCOUNT_NUMBER  # TNBC Account number that'll be used to receive payment
SIGNING_KEY  # Signing key of TNBC account that'll be used to transfer TNBC (suggested to use same set of account number and signing key)
BOT_MANAGER_ID  # Discord ID of the user who can use /kill command
MAAKAY_DISCORD_TOKEN  # Discord Token of the bot
SECRET_KEY  # Django Secret Key (Just a random string)
CHECK_TNBC_CONFIRMATION  # Flag to check or not to check confirmations (True/ False)
BANK_IP  # TNBC Bank IP we're connecting to.

Create required database and super user.

python manage.py migrate
python manage.py createsuperuser

Run the bot using the command python maakay-bot.py.

To run django server, use command python manage.py runserver.

Refer /core and /maakay for API reference.

Commands

/balance: Check your tnbc balance.

Balance

/deposit tnbc: Deposit TNBC into your maakay account.

Deposit

/set_withdrawl_address tnbc: Set your TNBC withdrawal address.

Set withdrawal adress

/withdraw tnbc <amount>: Withdraw TNBC into your withdrawal address.

Withdraw TNBC

/transactions tnbc: List all your deposit and withdraw history.

Transactions

/profile <user (optional)>: Check your or other user's maakay gaming profile.

Profile

/tip tnbc <user> <amount> <message>: Tip users TNBC with your beautiful message.

Tip New

/tip history: Check your tip history.

Tip History

/challenge new <title> <amount> <contender> <referee>: Start a new challenge with the contender with referee to reward once challenge is over.

Challenge new

/challenge all: List all your active challenges.

Challenge all

/challenge reward <challenge_id> <winner>: Reward the winner of the challenge.

Challenge Reward

/challenge history: List your challenge history.

Challenge history

/host challenge <title> <description> <amount> <url (optional)>: Host a new challenge with big prizes.

Host new

/host reward <challenge_id> <winner>: Reward the winner of the challenge.

Reward Hosted

/hosted history: View your hosted challenge history.

Hosted History

/hosted all: View your active hosted challenges.

Hosted All

About

Tip friends, create and host challenges using TNBC with maakay discord bot.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages