natehole / troikadiscordbot Goto Github PK
View Code? Open in Web Editor NEWThis project forked from awkwardturtle42/troikadiscordbot
Discord bot written in python to handle the Troika! initiative system.
License: GNU General Public License v3.0
This project forked from awkwardturtle42/troikadiscordbot
Discord bot written in python to handle the Troika! initiative system.
License: GNU General Public License v3.0
Basically, some instructions on how to walk people through getting a Discord API token, putting it in the .env and running the bot
!attack [WEAPON_NAME] [MODIFIER]
weapon name should be case insensitive. There is an edge case of names such as Small Beast that will have to be handled.
Example Output
in: !attack sword
out: 6 - rolled (3)
in : !attack MAuL
out: 12 - rolled (5) - ignores 1 point of Armour
in: !attack small beast 1
out: 3 - rolled (2 + 1)
Avrae is an advanced D&D bot for Discord. We should look at its codebase for tips on organizing things and presenting results
It seems like Technical Grimoire's Troika background generator has become a defacto standard, supported by multiple creators. So, let's switch to supporting that instead and work on defining other similar formats for spells and weapons
We can entirely reload cogs as we change them and not have to stop and start the bot for each change.
Here is a good starting place. This is the author of discord py
https://github.com/Rapptz/RoboDanny/blob/rewrite/cogs/admin.py
It would be cool if we could use something that can watch the codebase and update the cogs as changes are made but part one would be adding either bot commands command-line commands.
Right now, we have the prefix pinned to !
but borrow some code from Avrae to support customizing the command prefix
I originally decided against using the d20 library because it was overkill for what we needed and it also couldn't support the floor needed for damage calculations (basically after the roll and adjustments, the minimum roll must be 1). But I realize we probably want to add direct support for the GM to do rolls and roll20 is the safest and easiest way to do that
Here's a random question, should we adopt British spellings for things like armour? I only ask because that's how it's in the original book and I wonder if it might make more sense out a sense of parity
Embeds looks fun to mess around with. I checked out Avrae's codebase for some examples.
The first thing that comes to mind for me would be damage. We could include roll, bonus, result, armor, and total damage along with damage table. I can picture it in a visual way that I think might work and I've started to work on it.
I haven't researched anything at all but it would be nice if we had art assets to use with weapons as icons.
@harrisj what do you think? Would this be a good use for embeds?
Change to a regexp-driven model that is looking for Num String Num String so we can support tokens with spaces in the name
Character Generation should give not only d66 roll for the character but also the result of the roll along with Skills.
Right now I don't see a wiki to do this so this might involve a lot of manual copy and paste to create a JSON file with this data.
Character Generated by user#1234!
Skill - 4
Formula: 1d3 + 3
Rolled: (1)
Stamina - 19
Formula: 2d6 + 12
Rolled: (3, 4)
Luck - 11
Formula: 1d6 + 6
Rolled: (5) + 6
Silver Pence - 8
Formula: 2d6
Rolled: (2, 6)
Character Background - 42
Formula: 1d66
Rolled: (42)
Character Generated by user#1234!
Parchment Witch
lorem ipsum...
Possesions
Advanced Skills
Special
lorem ipsum...
Rolls
Skill - 4
Formula: 1d3 + 3
Rolled: (1)
Stamina - 19
Formula: 2d6 + 12
Rolled: (3, 4)
Luck - 11
Formula: 1d6 + 6
Rolled: (5) + 6
Silver Pence - 8
Formula: 2d6
Rolled: (2, 6)
Character Background - 42
Formula: 1d66
Rolled: (42)
I am thinking of borrowing some code from Avrae (with attribution in the contributions), but I think if I wanted to do that I'd need this code to adopt the GNU GPLv3 license (what Avrae has). Any objections?
Cleanup the code and fix all linter issues
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.