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
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.
/balance
: Check your tnbc balance.
/deposit tnbc
: Deposit TNBC into your maakay account.
/set_withdrawl_address tnbc
: Set your TNBC withdrawal address.
/withdraw tnbc <amount>
: Withdraw TNBC into your withdrawal address.
/transactions tnbc
: List all your deposit and withdraw history.
/profile <user (optional)>
: Check your or other user's maakay gaming profile.
/tip tnbc <user> <amount> <message>
: Tip users TNBC with your beautiful message.
/tip history
: Check your tip history.
/challenge new <title> <amount> <contender> <referee>
: Start a new challenge with the contender with referee to reward once challenge is over.
/challenge all
: List all your active challenges.
/challenge reward <challenge_id> <winner>
: Reward the winner of the challenge.
/challenge history
: List your challenge history.
/host challenge <title> <description> <amount> <url (optional)>
: Host a new challenge with big prizes.
/host reward <challenge_id> <winner>
: Reward the winner of the challenge.
/hosted history
: View your hosted challenge history.
/hosted all
: View your active hosted challenges.