torstencscholz / fs-bot Goto Github PK
View Code? Open in Web Editor NEWA Discord bot for the Frostshock community on our server
A Discord bot for the Frostshock community on our server
The log messages do not say when something happens. This should change.
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.
Instead of injecting all needed variables as parameters into the Command
's invoke
method, just inject one Context
object that contains all relevant information.
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.
A command like !lastseen {nickname}
should answer when a person with that given nickname was last seen (by the bot).
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.
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.
Currently the number of "hello" files is hardcoded, which is bad.
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.