Skip to content
Wargamer-Senpai edited this page May 12, 2023 · 4 revisions

Setup

Requirements:

  • Python 3.5 =<
  • Python module requests
    pip install requests 

Setup:

  1. Download latest release here (direct download)
  2. unzip folder in your desired destination
  3. edit config.py
    • configure matrix_username and matrix_password, these can be retrieved with the TS5 Extractor
  4. open console (cmd or bash) and run
    python main.py

All config paramters explained:

Paramter Meaning Examples
matrix_base_url set to which homebase the bot should connect https://chat.teamspeak.com
matrix_username set the username of the account you want to use aefaefaefaefaefa354354354354===
matrix_password set the password of the account you want to use JkFpIopKKKtdf55uimne69
bot_admin set yourself as admin. To get your identifier,
just run the bot and execute !whoami, then it will be printed
@rf5vjqmalallfdf48vg32420rrxlsibkrackg4j5pfquk3bt69zii===:chat.teamspeak.com
matrix_join_rooms sets if the bot should join other rooms he gets invited to or
accept friend requests
True
giphy_api_key used to get gihpy gifs, default api key is rate limited.
you can request you own if wanted
JukUjkllöpop69I134Verr694523Rinn
status_text set a desired status message ✨ vibing ヾ(•ω•`)o ✨
presence_state currently broken, looks like the homebase ignores this paramter Online
stats_visible set if normal users or only admins can see the stats of the bot. (Nothing sensitive will be printed, just funny numbers) public
bad_word_checks if some person sends a bad word (see modules/bad_words.py) the bot would respone with a gif False
command_prefix set how the commands should start
(every command name can be adjusted, if desired)
!

Commands Overview and Examples

you can test the bot yourself, just add teampy@myteamspeak.com to your contacts

General

!gif:

image

!gif <string>

image

!eth

image

!btc

image

!whoami

image

!whois <identifier>

image

!roll

image

!poll <string>

Example 1, without custom emojis:
image
Example 2, with custom emojis:
image

Admin

!admin version

image

admin health

image

!admin stop

image
(process exited on server)

!admin restart

image
(process restarted on server, should react after some seconds again)

!admin leave-room

image

!admin stats

image

!admin reload

image

!admin autojoin

image