This commit is contained in:
Daniel Odendahl Jr
2017-05-09 00:40:34 +00:00
parent 20f543515b
commit edc9bf561e
6 changed files with 3 additions and 34 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ You can join the home server with [this link](https://discord.gg/fqQF8mc).
[discord.js](https://discord.js.org), [commando](https://github.com/Gawdl3y/discord.js-commando), [zalgoize](https://github.com/clux/zalgolize), [superagent](https://visionmedia.github.io/superagent), [mathjs](http://mathjs.org), [moment](http://momentjs.com), [moment-duration-format](https://github.com/jsmreese/moment-duration-format), [jimp](https://github.com/oliver-moran/jimp), [cheerio](https://cheerio.js.org), [sequelize](http://docs.sequelizejs.com), [pg](https://github.com/brianc/node-postgres)
## APIs
[Wattpad](https://developer.wattpad.com), [Wordnik](http://developer.wordnik.com), [osu!](https://osu.ppy.sh/p/api), [memegen.link](https://memegen.link), [YuGiOh](http://docs.yugiohprices.apiary.io), [YouTube](https://developers.google.com/youtube), [Discord Bots](https://bots.discord.pw/api), [Today in History](http://history.muffinlabs.com/#api), [jService](http://jservice.io), [Urban Dictionary](https://github.com/zdict/zdict/wiki/Urban-dictionary-API-documentation), [OMDB](http://www.omdbapi.com), [Yahoo Weather](https://developer.yahoo.com/weather), [Google Maps](https://developers.google.com/maps), [Strawpoll](https://github.com/strawpoll/strawpoll/wiki/API), [rrrather](http://www.rrrather.com/botapi), [SoundCloud](https://developers.soundcloud.com), [random.cat](http://random.cat), [random.dog](https://random.dog), [fixer.io](http://fixer.io), [konachan](https://konachan.net), [lolibooru](https://lolibooru.moe)
[Wattpad](https://developer.wattpad.com), [Wordnik](http://developer.wordnik.com), [osu!](https://osu.ppy.sh/p/api), [memegen.link](https://memegen.link), [YuGiOh](http://docs.yugiohprices.apiary.io), [YouTube](https://developers.google.com/youtube), [Discord Bots](https://bots.discord.pw/api), [Today in History](http://history.muffinlabs.com/#api), [jService](http://jservice.io), [Urban Dictionary](https://github.com/zdict/zdict/wiki/Urban-dictionary-API-documentation), [OMDB](http://www.omdbapi.com), [Yahoo Weather](https://developer.yahoo.com/weather), [Google Maps](https://developers.google.com/maps), [Strawpoll](https://github.com/strawpoll/strawpoll/wiki/API), [rrrather](http://www.rrrather.com/botapi), [SoundCloud](https://developers.soundcloud.com), [random.cat](http://random.cat), [random.dog](https://random.dog), [fixer.io](http://fixer.io), [konachan](https://konachan.net)
## Licensing
The bot is licensed under an [ISC License](https://opensource.org/licenses/ISC). See the file `LICENSE.md` for more information.
-28
View File
@@ -1,28 +0,0 @@
const { Command } = require('discord.js-commando');
const request = require('superagent');
module.exports = class LolibooruCommand extends Command {
constructor(client) {
super(client, {
name: 'lolibooru',
group: 'randomimg',
memberName: 'lolibooru',
description: 'Sends a random (Possibly NSFW!) anime image from Lolibooru.',
guildOnly: true
});
}
async run(msg) {
if (!msg.channel.nsfw) return msg.say('This Command can only be used in NSFW Channels.');
if (!msg.channel.permissionsFor(this.client.user).has('ATTACH_FILES'))
return msg.say('This Command requires the `Attach Files` Permission.');
try {
const { body } = await request
.get('https://lolibooru.moe/post/index.json?tags=order:random&limit=1');
return msg.channel.send({ files: [body[0].file_url] })
.catch(err => msg.say(err));
} catch (err) {
return msg.say(err);
}
}
};
+1 -2
View File
@@ -83,8 +83,7 @@ module.exports = class InfoCommand extends Command {
[random.cat](http://random.cat),
[random.dog](https://random.dog),
[fixer.io](http://fixer.io),
[konachan](https://konachan.net),
[lolibooru](https://lolibooru.moe)
[konachan](https://konachan.net)
`
);
return msg.embed(embed);
-1
View File
@@ -53,7 +53,6 @@
<li><a href="https://random.dog">random.dog</a></li>
<li><a href="http://fixer.io">fixer.io</a></li>
<li><a href="https://konachan.net">konachan</a></li>
<li><a href="https://lolibooru.moe">lolibooru</a></li>
</ul>
<h2>Information</h2>
<ul>
-1
View File
@@ -97,7 +97,6 @@
<li><a href="https://random.dog">random.dog</a></li>
<li><a href="http://fixer.io">fixer.io</a></li>
<li><a href="https://konachan.net">konachan</a></li>
<li><a href="https://lolibooru.moe">lolibooru</a></li>
</ul>
<h2>Information</h2>
<ul>
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "18.8.1",
"version": "18.8.2",
"description": "A Discord Bot",
"main": "shardingmanager.js",
"scripts": {