Powerful discord bot for handling economy and wars for Discord servers
Report Bug
·
Request Feature
Table of Contents
Trinity is a discord bot that changes your server to both an economy and a roleplay server (if you choose to use it). Filled with fully operational battle mechanics, quests, items to horde, shop and leveling system, you will be ready to trade, conquer and raid your opponents.
This bot allows you to hot-swap all of the modules on the fly, and it is also fully customizable. Feel free to take advantage of the features and add your own.
To get this bot up and running, follow these steps.
- python (3.9 tested, might run on older versions)
sudo apt install python3 pip3
- Clone the repo
git clone https://github.com/Stax124/Trinity-V2
- Install requirements
pip3 install -r requirements.txt
- Enter your Discord API token (optionally, pass it as an argument on runtime with
--token your_token_here
)export TRINITY="your_token_here"
- Run the bot
python3 main.py [-h] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [-f FILE] [--token TOKEN]
load <cog: string> - Loads extension
reload <cog: string> - Reloads extension
reload-all - Reloads all extensions
unload <cog: string> - Unloads extension
attack <player_manpower: int> - Automatized battle system
manpower - Show manpower of user
config <path: str> [path: str]... - Output config as browsable directory
config-load - loads config file for current server
config-save - saves config file for current server
set <path: str> [path: str]... { = | < | > } <value> - Change values in config ("<" = subtraction | ">" = addition). You rather know what ya doin! (This can break the config when you do it wrong)
autorole <role: discord.Role> - Set default role for new members
limits - Shows upgrade limits for your account
members - Show all members
purge <number: int> - Delete messages from channel
role - Shows your roles
roles - Shows all roles
roll <sides: int> - Roll a dice
time - shows time as bot sees it (for timezone purposes)
upgrades - Shows the current number of upgrades bought
add-expedition [-h] [--manpower MANPOWER] [--level LEVEL] [--chance CHANCE] [--common COMMON] [--uncommon UNCOMMON] [--rare RARE] [--epic EPIC] [--legendary LEGENDARY] [--xp XP] [--description DESCRIPTION] name cost hours - Adds new expedition
expedition <name: str> - Starts selected expedition
expeditions - Shows all expeditions
remove-expedition <name: str> - Removes selected expedition
fallback-load - Loads fallback config
add-income <role: discord.Role> <value: integer>
income - Shows your income
income-calc <population: int> - Calculates income from population number
income-lb - Shows the income leaderboard (aliases: l, lb, leaderboard)
remove-income <role: discord.Role> <value: integer> - Remove income from role
add-player-item UNION[str, discord.Member] [--income INCOME] [--income_percent INCOME_PERCENT] [--discount DISCOUNT] [--discount_percent DISCOUNT_PERCENT] [--description DESCRIPTION] name {common,uncommon,rare,epic,legendary,event} {helmet,weapon,armor,leggins,boots,artefact} - Adds new item to player's inventory
equip <item: str> - Equips item
equiped - Shows all equiped items
inventory - Shows your "Realy useful" items in your inventory
recycle <item: str> - Recycles item from your inventory
recycle-all <rarity: str> - Recycles all items of selected rarity
remove-player-item <user: Union[str, discord.Member]> <item: str> - Removes item from player's inventory
unequip <item: str> - Unequips item
ban <user: discord.Member> - Bans selected user
kick <user: discord.Member> - Kicks selected user
add-money <user: discord.Member> <value: integer> - Adds money to user
balance - Shows your balance
buy <type: str> <value: int> - Spend money to make more money
leaderboard - Shows how poor you are
pay <user: discord.Member> <value: int> - Self-explanatory
remove-money <user: discord.Member> <value: integer> - Removes money from user
reset-money <user: discord.Member> - Resets user's balance
shop - Shows all items that you are too poor to buy
asyncs-on-hold - Show active async jobs that are in queue
eval - Evaluates code
exec - Executes code
shutdown - Shuts down the bot
tclear - Clears terminal screen
update - Updates the bot (requires git and no modifications done)
level - Shows your level and xp progress
levelup <skill: str> [value: int = 1] - Levels up a skill
skillpoints - Shows number of your skillpoints remaining
talents - Shows your skills
player-buy <user: discord.Member> <item: str> - Buys item from player
player-retrieve <item: str> - Removes listing and puts item back to your inventory
player-sell <price: int> <item: str> - Puts item on sale
player-shop <player: discord.Member> - Shows all items player is selling
add-item [--maxupgrade MAXUPGRADE] [--income INCOME] [--manpower MANPOWER] [--require REQUIRE] name cost - Adds item to database
deltatime <value: int> - Sets time between work commands
pause - Pauses everything (except unpause)
version - Shows current version of bot
work - What are you doing, make some money!
Contributions are what makes the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
See LICENSE
for more information.
Tomáš Novák - tamoncz@gmail.com
Project Link: https://github.com/Stax124/Trinity-V2