Does this work?
ultimatesppy765 / the-timepasser Goto Github PK
View Code? Open in Web Editor NEWRepository for our Discord bot.
Repository for our Discord bot.
Finish rewriting the already existing commands in the rewrite version:
/anipic
/aboutme
/avatar
/dice
/echo
/guessnum
/quote
/simon
Some improvements I've planned:
The commands like /simon
and /echo
that take input from the user and show it in the output are fun to use but open a big moderation loophole.
People can bypass automod by sending toxic stuff through the bot itself.
While there can be human moderators doing this job, it'll be tough to moderate all such issues…
Goal: Add a Google Perspective powered text input check that detects and cancels commands with toxic input.
wikiquote
and wikiquotes
are good enough implementations for fetching quotes from Wikiquote but don't satisfy our needs. On discovering Wikiquote has a public API, it feels rather better to switch to the raw Wikiquote API for fetching stuff, while making it possible to use this asynchronously with similar design plans for the remainder of the bot.
Earlier the only interaction types were:
PING
APPLICATION_COMMAND
Now more interaction types are coming and this is going to become a problem as there is a handler only for two interaction types.
Possible new interaction type:
3MESSAGE_CONPONENT
Goal: Add support for multiple interaction types, as future proofing and for new stuff coming soon™.
New evaluate command for instant testing of the JSON responses for slash commands.
Only the bot developers will be able to use this command.
It will return the JSON response as a follow-up (chances are there that ephemeral messages may not work) and will have error handling (only try except else lol).
The general problem with WSGI servers, is that each request waits for the previous one to be handled. To overcome this, switch to ASGI web server which handles many requests simultaneously.
discord-interactions
module by Discord to work with Quartaiohttp
instead of requests
for REST callsSending long quotes can cause stuff to break, while known, is a good reminder.
Plans to fix:
Aim: Make commands organised in files, and think about this: should I make one command per file?
The code looks too messed up.
Things to do with the code:
This might be updated depending upon how things go, as of now these are main changes to be done.
Make the bot interesting…lol, add economy system add games a change the pfp
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.