Skip to content
This repository was archived by the owner on Nov 24, 2022. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

266 Commits

Repository files navigation

TWOWBot

A simple bot for hosting miniTWOWs on Discord. You can add the bot to your server using this link. Or, if you would like to help test experimental features, you can invite the beta/unstable bot using this link.

Python3.6Discord.py rewriteDiscord Server

About TWOWBot

This bot is being developed by:

The bots are being hosted by:


How to use TWOWBot:

Hosting an mTWOW:

The host of an mTWOW has a couple of commands for them to use:

  • set_prompt will set the prompt for the round.
  • responses will send you a DM listing all of the responses so far.
  • start_voting will then close responses and allow people to vote.
  • Finally, results will end the round and show results
  • You can also use transfer to make someone else the host of the mTWOW.

Traditional mTWOWs:

The owner of a mTWOW can setup a traditional mTWOW where anyone can host:

  • can_queue on will allow people to join the hosting queue with join_queue.
  • queue_timer will allow you to set a timer for the events.
  • Use help queue_timer for help.
  • skip_host will skip the current host and start a fresh season.

Participating in an mTWOW:

When you are participating, you also have some commands you can use:

  • respond, when in a DM, allows you to respond to a prompt.
  • vote, when in a DM, will first generate your voting slide, and then allow you to vote on it.

Other useful commands:

There are a few commands that are useful to know:

  • prompt will show you the current prompt.
  • round and season will tell you the round and season number respectively.
  • id will get you the channel identifier for that mTWOW. This is needed when responding or voting.

Getting help:

All of these commands, and more, are available in the help command. If you want to invite the bot to your server, or join the official one, use about. If you are interested in hosting this bot for yourself, check the GitHub linked in the about command, or DM one of the developers (also in the about command).


All commands:

commandbrief description
roundGet the current round number.
sudoRun a command ignoring every check.
evaluateRun some code.
voteVote on the responses.
dieDisconnects the bot.
respondRespond to the current prompt.
sayGet te bot to say something.
helpThis help message :D
pingPing the bot.
idGet the server ID used in voting.
role_idsGet all of the role ids for the server.
aboutGet info about the bot.
meGet info about yourself.
promptGet the current prompt.
howGet instructions on hosting a mTWOW.
seasonGet the current season number.
registerSetup channel initially.
show_configSends the config file for this channel.
set_timesSet timer for next events. Events are voting and results.
set_promptSet the prompt for this round.
start_votingStart voting.
transferTransfer ownership of this mTWOW.
resultsEnd this round and show results.
deleteDelete the mTWOW.
responsesList all responses this round.

To get indepth help into any of these commands including what arguments they require and who can use them, use the help command.

How to host the bot:

Hosting TWOWBot is relatively simple. To download it run the following commands:

$ git clone https://github.com/HTSTEM/TWOW_Bot TWOWBot
$ cd TWOWBot/
$ git checkout yaml

Replace yaml in the above command with stable if you want to run versions that are usually stable. From there, there is a handy setup script to get you on your feet:

$ python3 setup.py

You will then need to edit src/config.yml with your information. Your bot token can be found here, the developers section should have your ID in it, and then anyone else that might need full control of the bot,for example, any alt accounts you have. The host should have your ID in it.

Once you've configured the bot, you can start it using:

run.cmd

Don't worry about being on Linux or Windows, the script will automatically detect which one you are using and then run the correct startup script for you.

This script will expect you to be running python 3.6. It will check for python3 and python as commands in that order, and use the first one it finds. It will also start it in a loop, so if the bot crashes, it will start back up. If you want to only run it once, use:

$ cd src/
$ python3 bot.py

About

No description, website, or topics provided.

Resources

Stars

10 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages