I made a Slack bot called SlackTCG. This bot runs a card game inside of Slack. There are five commands: /slacktcg-ping, /slacktcg-pack, /slacktcg-help, /slacktcg-inventory, and /slacktcg-trade.
Users can open 1 pack a day with the /slacktcg-pack command. There are 28 cards, and five rarities: common, rare, epic, legendary, and mythical. These are the card rarities: Common 60%, Rare 25%, Epic 10%, Legendary 4%, Mythical 1%.
Cards can also have modifiers that make them even rarer! Here are the modifier rarities: Normal 96%, Gold 3%, Shiny 0.9%, Rainbow 0.1%. This means that a rainbow mythical is almost 1/100,000 and you're only expected to get one every 20,000 packs!
Using the inventory and trade commands, you can trade with others and manage your collection, allowing progression to make the trading card game more fun.
The hardest part of this project was making it look aesthetically pleasing by only using slack text. I learned a lot about how to use virtual private servers to host it, using JSON to manage cards and users, and it enhanced my knowledge of Javascript to better prepare me for the robotics season.
Overall, this was a really fun project and I hope to make more slack bots in the future.
- 3 devlogs
- 2h
- Make a Slack Bot