Skip to content

Commit 0beef18

Browse files
authored
Merge pull request #43 from RTByte/dev-1.1.1
RTByte 1.1.1 release
2 parents 3a62a13 + 4594750 commit 0beef18

35 files changed

+391
-86
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
[![Discord](https://img.shields.io/discord/450163430373064704.svg?colorB=7289da&label=discord&logo=Discord&logoColor=fff&style=flat)](https://discord.gg/eRauWP4)
33
[![Open Issues](https://img.shields.io/github/issues/RTByte/RTByte.svg)](https://github.com/RTByte/RTByte/issues)
44
[![Open PRS](https://img.shields.io/github/issues-pr/RTByte/RTByte.svg)](https://github.com/RTByte/RTByte/pulls)
5-
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/2878b3d9eded4d4998cd29dbdf3e98ec)](https://www.codacy.com/app/mcumbers/RTByte?utm_source=github.com&utm_medium=referral&utm_content=ChopBot/RTByte&utm_campaign=Badge_Grade)
5+
[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/RTByte/RTByte.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/RTByte/RTByte/context:javascript)
6+
[![Total alerts](https://img.shields.io/lgtm/alerts/g/RTByte/RTByte.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/RTByte/RTByte/alerts/)
67
[![David](https://img.shields.io/david/RTByte/RTByte.svg?maxAge=3600)](https://david-dm.org/RTByte/RTByte)
78

89
RTByte is a fully modular multipurpose Discord bot built on the incredible [Klasa](https://klasa.js.org/) framework for [discord.js](https://discord.js.org/). It brings a ton of features to help you run and manage your server, and is fully integrated into Discord's audit log system.

config-default.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,12 @@ exports.config = {
2020
}
2121
};
2222

23+
// API tokens you'll need to run the bot
24+
exports.apis = {
25+
genius: '',
26+
google: '',
27+
darksky: ''
28+
};
29+
2330
// The token for this bot to login with
2431
exports.token = '';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rtbyte",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "A Discord Bot for the Rooster Teeth Community family of Discord Servers",
55
"main": "src/index.js",
66
"scripts": {

src/arguments/channelname.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ module.exports = class extends Argument {
4141
}
4242
}
4343

44-
};
44+
};

src/arguments/membername.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ module.exports = class extends Argument {
4747
}
4848
}
4949

50-
};
50+
};

src/arguments/rolename.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ module.exports = class extends Argument {
3939
}
4040
}
4141

42-
};
42+
};

src/arguments/username.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ module.exports = class extends Argument {
4747
}
4848
}
4949

50-
};
50+
};

src/commands/Admin/conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = class extends Command {
99
guarded: true,
1010
subcommands: true,
1111
description: language => language.get('COMMAND_CONF_SERVER_DESCRIPTION'),
12-
usage: '<set|show|remove|reset> (key:key) (value:value) [...]',
12+
usage: '<set|show:default|remove|reset> (key:key) (value:value) [...]',
1313
usageDelim: ' '
1414
});
1515

src/commands/Moderator/ban.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ module.exports = class extends Command {
4848
await this.client.schedule.create('timedBan', when, {
4949
data: {
5050
guildID: msg.guild.id,
51-
userID: username.id,
52-
userTag: username.tag
51+
userID: username.id
5352
},
5453
catchUp: true
5554
});

src/commands/Moderator/sendmsg.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ module.exports = class extends Command {
2121
if (await this.canSend(msg, target)) {
2222
try {
2323
await msg.delete();
24-
if (!target.constructor.name === 'KlasaUser') {
24+
if (target.constructor.name !== 'KlasaUser') {
2525
return target.send(message);
2626
} else if (target.constructor.name === 'KlasaUser') {
2727
// eslint-disable-next-line max-len
28-
return target.send(message).then(target.send(`This message was sent from the **${msg.guild.name}** Discord and can not be replied to. If you have any questions regarding the contents of it, please contact a moderator.`));
28+
return target.send(`${message}\n\n${msg.language.get('COMMAND_SENDMSG_DISCLAIMER', msg.guild)}`);
2929
}
3030
return target.send(message);
3131
} catch (err) {

0 commit comments

Comments
 (0)