ct-bess / bean-stalk Goto Github PK
View Code? Open in Web Editor NEWPersonal Discord Bot
Personal Discord Bot
For mical
Currently we have the phenomenal -yeet
command. But with no way to see the available channels, we lack a good way to reliably send messages to other servers which we may not be members of. the current workaround of a $echo -yeet
loop is unreliable and a nuisance to the channels it lands in. I propose that we include a command to list all of the channels of which bean stalk is a member, including the name and ID of each channel (and possibly the server name if you can work out the formatting)
Most programs allow for a programmatic way of viewing all of the various options they can use in their commands. In many, that simply involves a list of args and their possible values being produced by the --help
arg, but in some, there is an entirely separate command that lists out a database or other data to be used in a different command. Either of these approaches could be effective here.
The bot should have an attribute showing all of the guilds it is a member of. For example, the discord.py bot has a bot.guilds
attribute that is a list of guilds. Ideally each guild object will have an attribute for all text channels (in discord.py it is text_channels
). From here it would be simple to iterate over each guild and each text channel in turn and print output based on that.
bruh
The way this command was initially implemented is really bad; Every minute Bean filters a map of events for ones that match the date & time. Rather than doing a search every minute and wasting precious resources, let's assemble the events in such a way that all Bean needs to do is look into an object's index using the date/time as the key, and if there's something in there at that index we proceed to do the normal event stuff.
Old way:
New way:
ok have a nice day
please
message.content.messages.last()
is apparently not a function anymore
sending message.author
no longer @'s a user
Have to do <@!${message.author.id}>
now
channels
isn't a collection anymore, so don't forEach
it, you have to do channels.cache
or somethin
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.