TEAS is a Discord bot that allows you to stream audio directly from a local device to a voice channel through a Windows console application called TEASConsole.
There is a little bit of setup needed on first time use, but running the bot afterwards is very straightforward. This Readme contains detailed instructions and documentation for set up and usage.
To run TEAS, you will need two things: A bot token for a Discord application and the Guild ID, i.e. the ID of the server you want to use the bot in. If you already have this, feel free to skip ahead to "Running TEAS", otherwise this section will run you through to steps to gather this information.
[APP_ID]
in the following URL with your Application ID and access it to invite your bot to your server.https://discord.com/api/oauth2/authorize?client_id=[APP_ID]&permissions=2150648832&scope=bot%20applications.commands
Read Messages/View Channels
, Send Messages
, Embed Links
, Use Slash Commands
, Connect
, Speak
Now that you have both your bot token and the Guild ID, follow these steps to run TEASConsole for the first time:
botconfig.txt
upon startup, so it is recommended to leave the file name as it is unless you intend to use multiple configurations. See "Command Line Usage" for more information.You can always edit your created configuration file either through a standard text editor or in the configuration assistant directly in TEASConsole. Additionally, command line arguments are supported to temporarily override settings found in a config file. See "Command Line Usage" for more information.
Type these slash commands in any text channel on your server. The bot will listen to commands from users who a) are owners of the application b) are server managers c) are defined as admin users in the config d) have a role that has been defined as an admin role in the config.
/join
- Join the voice channel the issuing user is currently in/start
- Start streaming. The bot needs to be connected to a voice channel first/joinst
- Join the current voice channel and immediately start streaming/stop
- Stop streaming/leave
- Stop streaming and disconnect from the current voice channelTEASConsole is used in the following way: TEASConsole.exe [configfile] <arguments>
[configfile]
defaults to botconfig.txt
and is the file name or path to the text file containing the bot configuration. If the file is not found, the configuration assistant is launched to create a new config at this location.The following arguments are supported to override options found in the config file. Note that these will not be saved to the existing file.
-g
or --guild
- The ID of the Discord Guild the bot makes itself available in-t
or --token
- The bot token of the Discord application TEAS will connect to-d
or --device
- The friendly name of an audio device that will be used by TEAS-c
or --channel
- The ID of a Discord channel that the bot will connect to on startup--admin-names
- A comma-separated list of Discord users that the bot will accept commands from--admin-roles
- A comma-separated list of server role names that the bot will accept commands from--activity
- An activity that the bot will display ("Playing...")The following misc arguments are supported:
--new
- Launches the configuration assistant regardless of whether a valid config file was found at the given location. If one exists, default values will be set according to the content of the file.--verbose
- Enables debug loggingVersion 0.6 of TEASConsole introduced a new format for configuration files and changed the way that it registers Slash Commands on the Discord server. Because of that, a Discord Guild ID is now needed to run the bot. See "Retrieving the Guild ID" for how to get this.
Upon running v0.6 or higher for the first time, an interactive assistant will guide you through the creation of a new configuration file. Your bot token from an existing bottoken.txt
file will be used automatically. Note that passing a bot token file via the -t
argument is no longer supported. See "Running TEAS" for more information on new features introduced by the configuration format, and "Command Line Usage" for more information on the changes to CLI usage.
You will likely also notice that each Slash Commands appears twice in your server, but only one of them will function. This should be resolved by simply restarting your Discord client, as TEAS will automatically clear the old commands upon first startup.