i'm alterae, and this is my github. i like making things and sometimes i actually do so
pronouns: she/her or they/them
links:
A general-purpose discord bot written in TypeScript
License: MIT License
We need some contributing guidelines, architecture documentation.
Is your feature request related to a problem? Please describe.
The current plaintext output is boring, limited, and difficult to distinguish from non-bot messages.
Describe the solution you'd like
The bot should, by default, send messages using embeds, unless it lacks permission or is explicitly told not to, in which case it should fall back to plaintext.
Describe alternatives you've considered
Sticking with the current system is doable but I don't want to.
Additional context
Probably requires overhauling the command parser to add flags.
I'm not sure, but it might be a good idea for the type definition files to be renamed from .ts
to .d.ts
. Look into it more.
Describe the bug
When the bot stops, it still displays as online in Discord for a short time.
To Reproduce
^C
in console or the !stop
command.Expected behavior
The bot should display as offline immediately when stopped.
Additional context
It does go offline after a delay.
Is your feature request related to a problem? Please describe.
Calling !flip
repeatedly is annoying.
Describe the solution you'd like
!flip [num]
, where num
is a positive integer, should flip that many coins and output the results of each flip.
Describe alternatives you've considered
We could stick with the current simple system but I would rather not.
probably start from scratch for this tbh
This will save massive hassle by preventing ../..
imports.
Help command is currently weirdly implemented. That needs fixing.
We can grab the commands list by just importing it because it's its own module.
The code needs commenting or I'm going to lose the ability to make sense of it.
We should have one.
Need to add it as a local dependency, add a (probably empty) config file, and set it to ignore the out/
folder.
Is your feature request related to a problem? Please describe.
The status message is unset and there is nothing indicating to users what the prompt is.
Describe the solution you'd like
Once the client is ready, set the status message to something explaining the help command.
Describe alternatives you've considered
Setting the bot's nickname would be dumb.
Additional context
This is a pretty common thing. The only real question is how exactly we wanna go about it.
Is your feature request related to a problem? Please describe.
Currently, the only usage of the help command is !help
, which lists all available commands. This is annoying, as it sends a long message and offers no specificity.
Describe the solution you'd like
!help [command]
should display help on the given command. If the command does not exist (or is hidden), it should send an error message.
Describe alternatives you've considered
We could just not do this but usability will suffer in the long term once more commands are added.
Additional context
This can probably be done with the current (space separated) argument system.
Maybe also implement a --help
flag once flags are actually implemented?
It is probably sufficiently sensitive and spooky that we want to put it in there. Also hardcoding is bad and at present it is hardcoded.
Is your feature request related to a problem? Please describe.
Dice rolling is useful and we do not currently have it.
Describe the solution you'd like
Add a command that accepts dice notation and returns a result.
Describe alternatives you've considered
We could just do !roll [dice] [sides]
but that would be lame. Dice notation is (though harder to parse) far better.
Additional context
I'll have to look over my notes on dice rolling. Maybe get that NPM library made lol :p
In actuality it's probably important to keep this as simple as possible to minimize the difficulty in writing it.
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.