Giter Club home page Giter Club logo

papibot's People

Contributors

dependabot[bot] avatar emosewaj avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

iambuno

papibot's Issues

Papi-Bot reintroduces itself after some server outages

Whenever Discord has one of it's outages, the bot beliefes it was removed and then readded to several guilds, making it reintroduce itself.

Fix: Check new server against list of known servers and only send introduction if server is unknown.

servers.db stores unnecessary data

The servers.db file stores data that is not needed for normal operation.

Issues

  1. Table: prefixes
    This table stores every single guild even when no custom prefix was set.
  2. Table: prefixes
    This table stores the names of the guilds together with their ID. This may be a risk to privacy.

Solutions

  1. Reprogram the getPrefix function in /depen/config.js to return the default prefix if no prefix/no entry was returned from the database. This way only custom prefixes have to be saved.
  2. Since the name column is not used in regular operation, it is save to assume that its deletion should create no issues.

//broadcast does not send the message to all servers

The //broadcast command does not send the message to all servers as required. Reason for that is probably rate limiting, a 1s or 1.5s delay between sending the messages might help here, but I'm not sure.

Also make sure it checks for the new category channels.

//cleanup fails if there are more messages cleaned up than the bot has spoken in that channel

If the bot has fewer messages sent than trying to delete, the bot will return the following error:
messages[i]: The set already contains this value
where i is an empty array entry.

Example:
Error while cleaning up:
DiscordAPIError: Invalid Form Body
messages[15]: The set already contains this value
messages[16]: The set already contains this value
messages[17]: The set already contains this value
messages[18]: The set already contains this value
messages[19]: The set already contains this value

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.