Git Product home page Git Product logo

demonbutlerbot's Introduction

Demon Butler Bot

Greetings, mortal! My task is to retrieve valuable information from the human game OldSchool RuneScape by Jagex Ltd, who of which I am not associated. I am at your eternal service.

โ€” Alathazdrar, the demon butler

This is the repository for @DemonButlerBot, a Telegram bot themed after the Demon Butler from OldSchool RuneScape by Jagex Ltd. He is created and managed by Ozzy Callooh (@OzzyC).

Commands

  • /start The butler will greet you!
  • /help Show a list of basic commands.
  • /remember <name> Tell the butler your RSN so it can remember it for name-based commands, or recall what you told the butler. You can also tell him to /forget it.
  • /skills <name> Looks up the stats of the player with the given <name>, or your remembered name. Example: /stats Zezima
  • /kc <name>, /kc <name>, <label>, or /kc <label> (after /remember) Show kill-counts for the name you provide, or a specific label if you told the butler to /remember your RSN, e.g. /kc barrows
    • Outside of private chats, long messages won't send to prevent spam. You can override this by using all for <label>.
  • /kchelp Lists shortcut commands similar to /kc for groups of hiscore labels:
    • /gwd, /dks, /raids, /slayer, /f2p, /clues, /lms
  • /ge <item> Looks up the current price of an item traded on the Grand Exchange.
  • /greeting <greeting> (Group admins only) Sets a greeting for the butler to say when a new person is added to a chat.
    • /greeting off (Group admins only) Removes the group greeting.

Dependencies

This bot runs on Python 3.5 or greater, and requires the following libraries:

Configuration

The Demon Butler uses JSON files to control how he operates. This is where information like the Telegram bot token should go. See sample-with-comments.config.json for an example configuration file.

If telegram.use_webhooks is true, the bot will use an internal HTTP server to serve webhook requests. The bot will automatically set the webhook to telegram.webhook.host with port 443 (this cannot be configured). Use nginx or Apache to route SSL traffic to the internal port.

Running the Bot

Set the CONFIG environment variable to point to your config file (default is config/default.config.json). Run the bot using GNU make. A virtual environment is automatically set up using Makefile.venv, which has other variables to configure like PY (default python3).

$ make run

License

The Demon Butler Bot is licensed under CC BY-NC-SA.

CC BY-NC-SA

demonbutlerbot's People

Contributors

mtkwock avatar ozzycallooh 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.