claritycafe / clara Goto Github PK
View Code? Open in Web Editor NEWA general purpose Node.JS bot for Discord.
License: BSD 3-Clause "New" or "Revised" License
A general purpose Node.JS bot for Discord.
License: BSD 3-Clause "New" or "Revised" License
Due to little/no support from most known PaaS services, RethinkDB is no longer fit for usage on this bot.
although it has some caveats, it should work for selfhosts who can't even get Rethink working
When the bot is supposed to leave a voice channel due to timeout or tries to reseed connections after a reboot, the bot sometimes randomly changes the channel it is in. Could be a lib issue or Discord issue as I cannot reliably recreate this.
Stacktrace :
C:\Users\Krystal\Documents\owo-whats-this\out\commands\awwwsooo\osu.js:34
if (user.user_id == undefined) {
^
TypeError: Cannot read property 'user_id' of undefined
at IncomingMessage.<anonymous> (C:\Users\Krystal\Documents\owo-whats-this\node_modules\request\request.js:1001:12)
at IncomingMessage.g (events.js:291:16)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)```
this causes instability and crashes the bot due to OOM
most common error to see is stdout maxBuffer Reached
TODO: Various commands for the bot owner and admins.
Dynamic command load and unloadncommands, and maybe a JSON file to keep track of unloaded commands to make the command loader skip them.
Blacklist commands
Commands to add/remove admins.
Commands to add/remove alternative prefixes.
for those lazy twats who can't do role-changing and banning and kicking themselves
TODO
yeah, sometimes we need a little bit of cleaning.
k.clean bots
would clean anything bots, additing an additional integer for example k.clean bots 10
would clean the most recent 10 messages from bots)Self Explanatory
TODO
Long-Requested Feature since Pre-test Alpha
we need consider hosters with less than 500MB RAM (Like our Azure host, but 100MB more) sinc ethe current implementation leaks memory faster than Danny ninja-banning
This would be our Milestone tracker so we know what the fuck are we doing.
Add more if needed.
THIS IS HIGHLY REQUIRED BECAUSE THE BOT IS NOW AT 20 GUILDS!
no need for todos, just read the d.js docs to get it functional
nya
awau
TODO :
Because the lack of a preconfigured setting for RethinkDB, selfhosters who are new to the Framework would have problems running the bot.
We should be able to provide a preconfigured setting for Rethink if no custom options were supplied in config
๐
we're gonna need ytdl for this AFAIK
*Reproduction steps:
Expected behaviour
data.json
Prior to our upcoming meme in March 25-April 1, il8n will be supported for multi language support.
Functions
Implementation
Appears to be some minor memory leak somewhere, as memory usage grows from 70mb to 100mb over the course of 2 days. May be related to music however memory usage stays the same even with no queues and music unloaded. Will investigate further.
Happens on Nodetori's Music (and Beta too)
usually this would cause the bot to error out and loop
this is a problem associated when the bot is ran not first-time
some of this commands work on first-time usage but doesn't work on our public host VPS (Nodetori).
this is a voluntary job, please assign yourself if you want to work with it
A Greet Disable/Enable which is unique for each server (yes, this is not a global command and more guild-specific)
add a way to automatically detect (and disable the greet system) on Discord Developers' Servers (Discord API, Discord Bots and Discord Developers)
you can whitelist a bot collection server too if you wish.
I have noticed during my testing, that occasionally when the bot joins a voice channel, nothing gets added to the appropriate music collections, resulting in the bot thinking that it isn't in a voice channel, and therefore not playing anything.
stop
should be reserved for summoners and guild admins/mods. However in 0.2.2, we can stop regardless you're the summoner or not
This is a Minor milestone. Probably only fixes and such
since we have changed some code to be in par with a breaking version of Eris, we should bump the version of Eris in package.json
to be in par with the changes
This is set for release before April 1.
This is another Major Release
Proposed changes after bugfix
util
can be used) for text displayTypeError
TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined
at err (C:\Users\Krystal\Documents\owo-whats-this\src\lib\commandLoader.js:43:24
at new Promise (C:\Users\Krystal\Documents\owo-whats-this\node_modules\bluebird\js\release\promise.js:77:14)
at preloadCommands (C:\Users\Krystal\Documents\owo-whats-this\src\lib\commandLoader.js:41:12)
at Promise (C:\Users\Krystal\Documents\owo-whats-this\src\lib\commandLoader.js:111:9)
at Promise._execute (C:\Users\Krystal\Documents\owo-whats-this\node_modules\bluebird\js\release\debuggability.js:299:9)
at Promise._resolveFromExecutor (C:\Users\Krystal\Documents\owo-whats-this\node_modules\bluebird\js\release\promise.js:481:18)
at new Promise (C:\Users\Krystal\Documents\owo-whats-this\node_modules\bluebird\js\release\promise.js:77:14)
at Object.exports.init (C:\Users\Krystal\Documents\owo-whats-this\src\lib\commandLoader.js:109:12)
at Client.bot.on (C:\Users\Krystal\Documents\owo-whats-this\src\bot.js:77:50)
at emitNone (events.js:91:20)
at Client.emit (events.js:185:7)
at WebSocketManager._emitReady (C:\Users\Krystal\Documents\owo-whats-this\node_modules\discord.js\src\client\websocket\WebSocketManager.js:221:17)
at WebSocketManager.checkIfReady (C:\Users\Krystal\Documents\owo-whats-this\node_modules\discord.js\src\client\websocket\WebSocketManager.js:246:14)
at GuildCreateHandler.handle (C:\Users\Krystal\Documents\owo-whats-this\node_modules\discord.js\src\client\websocket\packets\handlers\GuildCreate.js:13:31)```
only a meme would do this
TODO :
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.