Giter Site home page Giter Site logo

rustybot's Introduction

rustybot

rustybot is a Tox groupchat trivia bot written in Rust.

Features

rustybot is capable of playing multiple games at once in any number of groups. Player statistics including total points accumulated, rounds won, and games won, are stored in a database and persist across restarts. Tox ID's are used as database keys, which means peers will always be tied to the same entry as long as their Tox ID doesn't change.

She reads questions from the data/questions file which will need to be provided by the owner. Questions and answers must be divided by the ` character and each line must end in a \n byte. An example list can be found here.

Usage and ownership

rustybot automatically accepts friend requests and group invites. The person who invites her to the group becomes her owner for that group and may use privileged commands. Additionally, all Tox ID's contained in the data/masterkeys file are her permanent owners and may use privileged commands in any group.

Non-privileged commands

  • !help - Print a list of non-privileged commands
  • !hint - Display a hint for the current question
  • !source - Link to the source code
  • !score - Print your score
  • !stats - Print the leaderboard
  • !trivia - Begin a game of trivia

Privileged commands

  • !quit - Leave the groupchat
  • !stop - End the current trivia game
  • !disable - Disables the trivia command
  • !enable - Enables the trivia command

Compiling and running

cargo build && cargo run or just cargo run

rustybot's People

Contributors

jfreegman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

subliun fuinha

rustybot's Issues

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.