Giter Site home page Giter Site logo

fs-bot's People

Contributors

torstencscholz avatar

Watchers

 avatar  avatar

fs-bot's Issues

"Command" implementation

Currently the bot supports very few "commands". Command is not the correct word though, because the bot just listens for specific messages which happen to begin with a !.

A better approach is implementing a whole Command system in which the programmer can specify names of commands with parameters and appropriate actions.

Command: Last seen

A command like !lastseen {nickname} should answer when a person with that given nickname was last seen (by the bot).

Requirements

  • A database saving all seen nicknames (or users?) (prob. SQLite)
  • Creating / Updating entries when a user is last seen (what does this mean? Leaving the channel or quitting discord?)

Bot thinks that user joined when a user changes his voice state

If there are already users present in the voice channel when the bot joins and a user changes his voice state, the bot thinks that that user joined (as he was previously unknown to the cached user data).

To fix this the bot has to initially get all users in the voice channel and add them to the bot's local user cache.

Bot keeps set of "known users" even if it disconnects

If the bot disconnects when users are in the voice channel, one or more users disconnect while the bot is also disconnected, the bot rejoins and a prev. known, but disconnected user also rejoins (after the bot), the bot does not recognize that user as a "new" user.

Fix: The bot should reset its set of known users if it disconnects.

Better logging

The log messages do not say when something happens. This should change.

Bot needs a very simple user management

The bot should have master users that have permission to do anything (any command) with the bot. Other commands that have no restrictions should be usable by anybody. In the future it might be interesting to add a role system.

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.