A work in progress bot for JumpInChat
QuantumJump requires at least Python 3.8
Optionally, you can use pipenv to manage the virtualenv
A few Python modules are required:
- websockets
- tomlkit
- aiohttp
- beautifulsoup4
- wikipedia
- aiohttp_socks (Tor support)
- pytz (Wundertime support)
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
With pip
pip3.8 install --user websockets tomlkit aiohttp beautifulsoup4 wikipedia aiohttp_socks pytz
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 pongsevent
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 | things | 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 |