emosewaj / papibot Goto Github PK
View Code? Open in Web Editor NEWA general purpose Discord Bot.
A general purpose Discord Bot.
What I expected to happen:
The bot deletes the command after it was executed.
What actually happened:
The bot crashed.
How to replicate:
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.
I actually noticed that while trying to change the channel myself lol, oops xd
The servers.db file stores data that is not needed for normal operation.
prefixes
prefixes
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.name
column is not used in regular operation, it is save to assume that its deletion should create no issues.Title pre-11.01.2018: //play random sometimes won't play the song but announce that it's being played
Expected behaviour: The announced song is played.
Actual behaviour: Song seems to not be played in random cases.
Workaround: none
To reproduce:
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.
The guild list //getguilds outputs is over the maximum character limit and therefore not sent.
Workaround: Send multiple messages/pages.
Caused by the function being run in the Client.on("ready")
block, causes duplicate entries in the help system.
Should be fixable by moving the function into init()
.
How to reproduce:
The current images are quite shitty and only really work on a white background, need some others, maybe original ones.
Not urgent.
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
The bot will return the following error, if it does not have the Manage Messages permission:
Error while cleaning up:
DiscordAPIError: Missing Permissions
This is due to bulk delete being disabled when these permissions are missing.
Workaround: Recursively delete messages manually.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.