-
๐ซ How to reach me [email protected]
-
โก Quote No mission is too big, no merit is too small
dinhanhx / discord-meme-bot Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
๐ซ How to reach me [email protected]
โก Quote No mission is too big, no merit is too small
Like Dank Memer, it send url to image not whole image. By doing this, Meme bot can be faster
Something like send wholesome
or send wmeme
or send send wholesome-meme
send dank
and send mimi
Particularly:
I know they aren't memes but I don't think anime girl is either.
All these comics have RSS feed and we can get new comic from that.
I'd like this bot to send a meme twice a day on 8 AM and 8 PM
With many new commands, help is needed. Most preferably, the help is printed when the bot is tagged in a message with help
.
I found an API to send direct url to a deep dream model
https://deepai.org/machine-learning-model/deepdream
I think someone can implement this since I am dumb in Js.
proc deep dream <url>
Currently, the command are called with chained if-else blocks like this:
if (message === 'command 1') {
http.get({
hostname: config.apiHost,
port: config.apiPort,
path: 'api/path/1'
}, sendMeme);
} else if (message === 'command 2') {
http.get({
hostname: config.apiHost,
port: config.apiPort,
path: 'api/path/2'
}, sendMeme);
} else ...
This is terrible, because:
Ideally, after this refactoring, the above code would look like this:
commandMap = {
'command 1': {
'path': 'api/path/1',
'help': 'This command do thing 1'
},
'command 2': {
'path': 'api/path/2',
'help': 'This command do thing 2'
};
addMemeCommand(commandMap);
This will makes it easier to add a command. Moreover, it has low time complexity O(1) and it is also easier to implement a solution for #6
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.