Offical Repository for the Documatic Hackathon, participated by Tomato#6966
- 1. Bot Information
- 2. How does this Bot work ?
- 3. All Games
- 4. Self Hosting Tutorial
- 5. Commands List
- 6. To Do List and History
- Invite it, play with it, use it! but make sure to grant
SLASH COMMAND
&EMBED
PERMISSIONS. Official Discord Server: https://discord.gg/XGAHheQxde - This Bot got coded for the Documatic Hackathon hosted on their Discord.
- It's coded with nodejs v16.13 but needs nodejs v16.6 or higher, due to latest discord.js version. Technically it doesn't need any other packages, except the ones which are build in nodejs such as
fs
,readline
, etc. but if you want you could add a custom DB, there is an example for it... - All Emojis used are provided in a Folder, which can be used, but not needed, because u can use UNICODE Emojis too!
- The Theme of this BOT is "CHILD GAMES", this means it is inspiried by Games we used to play as a child!
- It supports multiple languages and you can easily add more!
- It has a OWN CODED DATABASE with JSON, aka it can corrupt on BIG DATAS soon, so you might adjust database.js (it's easy to change!!!! as you have functions for it!) I might add examples for something like enmap)
- and more! (Note that not everything is translated yet)
- It works fully via Slash Commands. means it needs to be invited with the
applications.commands
Scope. - Other wise, each game needs to ping a player with which you want to play with (in some you can play alone).
- You can only play 1 Game at once.
- You can only request 1 Player-Enemy at once.
- Make sure to respond quick, otherwise the games might end.
Currently there is only 1 Game:
- The Memory Game is simple explained, it is like MEMORY CARDS.
- You pic 2 Cards and remember them. If it's a match you get 1 Point.
- The one with the most points is the winner.
- you can play with the bot, he is an EASY AI, aka it will calculate the % of when to win and always win after X different wrong pics
- You can play with yourself (but you will get 1 win and 1 loose at the same time... aka you control player 1 and 2)
- You have 1 Minute to pic 2 cards. Otherwise the game will end!
- Here are offical Memory Rules
1.
Download nodejs v16.6 or higher I recommend v16.13, if you need it for a LINUX VPS check out my CHEATSHEET2.
Download this Repo as a ZIP and Extract it (open a CMD in that FOLDER), or clone it:git clone https://github.com/Tomato6966/Documatic-Hackathon
3.
CD into it:cd Documatic-Hackathon
4.
typenpm install
5.
to start it typenode bot.js
ornode index.js
and then choose what you wanna do (n
for skipping "FUN QUESTION", the answer for it would beDocumatic
)--
to deploy slash commands donode index.js
-->n
-->2
--> then choose--
to host 24/7 Buy a VPS and host it with PM2npm i -g pm2
-->pm2 start bot.js
--
to stop hosting it type ctrl+c in the console--
Yes you can typenpm start
/npm run
All Commands work via slash Commands!
-
/language [change_language:german/bosnia/english/frensh/hindi/kurdish/spansish/]
... change the language of the bot in that guild -
/ping [what_ping:api_ping/bot]
... show the ping of the bot -
/uptime
... show the uptime of the bot -
/info [what_info:about_me/memory_game]
... show some information -
/invite
... invite it -
/support
... show support server -
/leaderboard game:memory/all_games sort:maxpoints/avg_points_per_game
... shows the leaderboard of all games or specific games + adds option to define the sorting style -
/userstats [user:@user]
... shows stats of user (global & guild stats [maybe soon option to define global or guild] -
/memory enemy:@user [boardsize:2x2_up_to_2_Points/3x3_up_to_4_Points/4x4_up_to_8_Points/5x5up_to_12_Points]
... plays a game of memory with options like who is the enemy and how big the board should be!
You can play with yourself and with the bot as an ai
- β Handler add:
Slash Commands and Event Handler + Deployer Option in console
02.01.2022 20:00- β Minigame add:
Ask Question and answer with Documatic to access Bot
02.01.2022 20:21- β Command add:
/ping
02.01.2022 20:46- β Command add:
/info what_info
03.01.2022 20:00- β Feature add:
add option to choose quick start
03.01.2022 20:17- β Command add:
/memory
03.01.2022 21:00- β Command add:
/language change_language
04.01.2022 17:23 (recode everything again)- β Languageadd:
German
05.01.2022 18:45 (automated translation script with request and open google api to translate it)- β Languageadd:
Spain
05.01.2022 18:45 (automated translation script with request and open google api to translate it)- β Languageadd:
Hindi
05.01.2022 18:45 (automated translation script with request and open google api to translate it)- β Languageadd:
Bosnia
05.01.2022 18:45 (automated translation script with request and open google api to translate it)- β Languageadd:
French
05.01.2022 18:45 (automated translation script with request and open google api to translate it)- β Languageadd:
Spanish
05.01.2022 18:45 (automated translation script with request and open google api to translate it)- β Languageadd:
Kurdish
05.01.2022 18:45 (automated translation script with request and open google api to translate it)- β Languageadd:
Ukrainian
05.01.2022 18:45 (automated translation script with request and open google api to translate it)- β DEBUG FOR BUGS:
Fix bugs in all languages and scripts + optimize it
05.01.2022 23:00 (5h of debugging & testing)- β Command add:
/support
06.01.2022 11:17- β Command add:
/uptime
06.01.2022 11:17- β Command add:
/invite
06.01.2022 11:17- β Feature add:
/memory --> play with yourself validation (get 1 win & 1 loose) (technically shouldn't change the lb)
06.01.2022 13:10- β Feature add:
/memory --> Pick the bot to play with AI
06.01.2022 13:57- β Feature add:
add bot.js to directly start the bot without userinput
06.01.2022 14:00- β Command add:
/userstats user
06.01.2022 14:20- β Command add:
/leaderboard game sort
06.01.2022 14:43- β Add Game:
DOME
- β Add Game:
Bubbles
- β Add Game:
LADDERS
- β Add Game:
"CUPS"
- β Languageadd:
Arab
- β Languageadd:
Czech
- β Languageadd:
Dutch
- β Languageadd:
chineese/japan
- β
Feature add:--> Not neededsharding
- β Feature add:
Automated Status Changer
You can always Support me by inviting one of my own Discord Bots
If consider using this Bot, make sure to credit me!