A discord bot built for harm reduction and chemistry.
Just invite the bot to your own server, and see what it can do!
Psychotropic has a comprehensive help system.
-
/aboutShow various information about the bot.
-
/helpDisplay help page. All commands will be listed there ✨
The Structure game is a complete rewrite of a proof of concept from arli, thanks to them for sharing it!
Python 3.10+ is needed to run psychotropic.
$> git clone https://github.com/x-yzt/psychotropic/
$> cd psychotropic
$> pip install .
$> export DISCORD_TOKEN="foobar"$> python -m psychotropic.botNote: Persistant storage files will be created and searched in the directory
you invokes the command in, so be sure to cd in the directory you actually
want them.
The scores.json file was removed in favor of a more permissive players.json
file. This little script can help converting between the old and new format.
import json
from psychotropic.cogs.games import Profile, ScoreboardJSONEncoder
from psychotropic.settings import STORAGE_DIR
with open(STORAGE_DIR / 'scores.json') as file:
data = {
uid: Profile(balance=max((0, balance)))
for uid, balance in json.load(file).items()
}
with open(STORAGE_DIR / 'players.json', 'w') as file:
json.dump(data, file, cls=ScoreboardJSONEncoder)
print(f"Converted {len(data)} scoreboard entries.")