A work in progress bot for JumpInChat
⚠ Requires Python 3.8.5+ — you may need to compile it yourself
Optionally, you can use pipenv to manage the virtualenv
A few Python modules are required:
- aiohttp
- aiohttp_socks (Tor support) - Optional
- beautifulsoup4
- dhooks (Discord relay support) - Optional
- pytz (Wundertime support) - Optional
- tomlkit
- websockets
- wikipedia (Wikipedia support) - Optional
- wolframalpha (WolframAlpha support) - Optional
QuantumJump is confirmed working on GNU/Linux, the status of operation on other operating systems is currently unknown. Feel free to give it a go and report back.
With pipenv
pipenv install --dev
With pip
pip3.8 install -U --user aiohttp aiohttp_socks beautifulsoup4 dhooks pytz tomlkit websockets wikipedia wolframalpha
With pipenv
pipenv run python run.py
With python
python3.8 run.py
Upon first run the bot will search for config.toml
, if it doesn't exist it will walk you through configuration.
makeCommand
@makeCommand(name="ping", description="Reply to ping")
async def replytoping(self, c: Command):
await self.send_message("Pong!") # quantum: Pong!
# or if you want third person
await self.send_action("pongs") # *quantum pongs
event
from lib.styling import Colors, Styles
@event(event="room::message")
async def message(self, message: Message):
msg = message.message
if "ping" in msg:
# colorize or stylize your message
await self.send_message("Pong!", color=Colors.red, style=Styles.script)
# quantum: 𝓟𝓸𝓷𝓰!
Command | Argument | Description |
---|---|---|
uptime | N/A | current uptime |
version | N/A | current version and latest version |
timer | seconds | count down |
Command | Argument | Description |
---|---|---|
roll | sides dice | roll dice, default is 1 die, 6 sides |
rate | thing | rate a thing out of 10 |
8ball | question? | standard magic 8ball |
Command | Argument | Description |
---|---|---|
imdb | query | search The Movie Db for TV and movies |
Command | Argument | Description |
---|---|---|
420hour | N/A | toggle hourly 420 notifications |
tokes | seconds | call tokes in a bit |
cheers | N/A | Cheers! |
Command | Argument | Description |
---|---|---|
yt | title or url | play a video |
Command | Argument | Description |
---|---|---|
urb | query | search Urban Dictionary |