Giter Club home page Giter Club logo

quantumjump's Introduction

QuantumJump

HitCount

A work in progress bot for JumpInChat

Prerequisites

⚠ 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:

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.

Installation

With pipenv

pipenv install --dev

With pip

pip3.8 install -U --user aiohttp aiohttp_socks beautifulsoup4 dhooks pytz tomlkit websockets wikipedia wolframalpha

Running

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.

Porting To QuantumJump

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: 𝓟𝓸𝓷𝓰!

Commands

Builitins

Command Argument Description
uptime N/A current uptime
version N/A current version and latest version
timer seconds count down

Fun

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

Movie

Command Argument Description
imdb query search The Movie Db for TV and movies

Tokes

Command Argument Description
420hour N/A toggle hourly 420 notifications
tokes seconds call tokes in a bit
cheers N/A Cheers!

Youtube

Command Argument Description
yt title or url play a video

Urban Dictionary

Command Argument Description
urb query search Urban Dictionary

Contributors

Thanks to those who have helped make quantum a thing

@rkben

@Tech

quantumjump's People

Contributors

johnripper avatar autotonic avatar technetium1 avatar nortxort avatar smokeynerd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.