Fixed bad grammer in source and readmes

This commit is contained in:
Ben
2018-12-15 20:22:09 +00:00
parent b36237cda3
commit ee9955558e
5 changed files with 32 additions and 27 deletions

View File

@@ -610,7 +610,7 @@ exports.loadModule = function loadModule() {
hastebinMessage += 'Reason : ' + entry.reason + '\n\n';
}
else {
hastebinMessage += 'Member has deleted himself the message\n\n';
hastebinMessage += 'Author deleted their own message\n\n';
}
hastebinMessage += 'Message Author\'s Name : ' + message.author.username + '#' + message.author.discriminator + '\n';
hastebinMessage += 'Message Author\'s Id : ' + message.author.id + '\n\n';
@@ -646,8 +646,8 @@ exports.loadModule = function loadModule() {
hastebinMessage += 'Message Author\'s Id : ' + message.author.id + '\n\n';
hastebinMessage += 'Message Channel Name : ' + message.channel.name + '\n';
hastebinMessage += 'Message Channel Id : ' + message.channel.id + '\n\n';
hastebinMessage += 'Emoji Name : ' + emoji.name + '\n';
hastebinMessage += 'Emoji Id : ' + emoji.id + '\n\n';
hastebinMessage += 'Emote Name : ' + emoji.name + '\n';
hastebinMessage += 'Emote Id : ' + emoji.id + '\n\n';
hastebinMessage += '---\n\n';
hastebinMessage += 'Content :\n\n';
hastebinMessage += message.content + '\n\n';
@@ -678,8 +678,8 @@ exports.loadModule = function loadModule() {
hastebinMessage += 'Message Author\'s Id : ' + message.author.id + '\n\n';
hastebinMessage += 'Message Channel Name : ' + message.channel.name + '\n';
hastebinMessage += 'Message Channel Id : ' + message.channel.id + '\n\n';
hastebinMessage += 'Old Emoji Name : ' + emoji.name + '\n';
hastebinMessage += 'Old Emoji Id : ' + emoji.id + '\n\n';
hastebinMessage += 'Old Emote Name : ' + emoji.name + '\n';
hastebinMessage += 'Old Emote Id : ' + emoji.id + '\n\n';
hastebinMessage += '---\n\n';
hastebinMessage += 'Content :\n\n';
hastebinMessage += message.content + '\n\n';

View File

@@ -32,11 +32,11 @@ exports.loadModule = function loadModule() {
if (!message.member.permission.has('manageGuild') && message.author.id !== configM.config.owner) return;
try {
await dbEI.initServer(message.channel.guild.id, message.channel.id);
bot.createMessage(message.channel.id, 'Server **successfully** initted ! The fallback event channel has been set to this channel, you can modify it with the command `set-fallback-channel` in the target channel. See <https://github.com/ahoZiorce/logori/blob/master/BOTLIST.md> to get some help with the commands');
bot.createMessage(message.channel.id, 'Server **successfully** initialized ! The fallback event channel has been set to this channel, you can modify it with the command `set-fallback-channel` in the target channel. See <https://github.com/ahoZiorce/logori/blob/master/BOTLIST.md> to get some help with the commands');
}
catch (e) {
console.log(e);
bot.createMessage(message.channel.id, 'An error happened');
bot.createMessage(message.channel.id, 'An error occured');
}
});
commandH.endpoint('^softban <@(.+)>$', async (match, message) => {
@@ -50,7 +50,7 @@ exports.loadModule = function loadModule() {
}
catch (e) {
console.log(e);
bot.createMessage(message.channel.id, 'An error happened');
bot.createMessage(message.channel.id, 'An error occured');
}
});
commandH.endpoint('^state(?: (.*))?$', async (match, message) => {
@@ -73,8 +73,8 @@ exports.loadModule = function loadModule() {
// TODO: Check if the set channel is in this guild
if (legitChannel(message, channelId)) {
dbEI.setFallbackChannel(message.channel.guild.id, channelId);
bot.createMessage(message.channel.id, `Fallback **set** to the channel <#${channelId}>, all the event logging will be done there by default. A message will be sent in that channel to make sure it is correct.`);
bot.createMessage(channelId, `<@${message.author.id}>, this is now the fallback channel for all the events. That means if some event doesn't have some particular channel set, it will default to this channel`);
bot.createMessage(message.channel.id, `Fallback **set** to the channel <#${channelId}>, all the event logging is be done there by default. A message is be sent in that channel to make sure it is correct.`);
bot.createMessage(channelId, `<@${message.author.id}>, this is now the fallback channel for all the events. That means if some event doesn't have some channel set, it will default to this channel`);
}
else {
bot.createMessage(message.channel.id, 'That channel is not in this guild. Don\'t try to prank me.');
@@ -118,7 +118,7 @@ exports.loadModule = function loadModule() {
newState = false;
}
else {
bot.createMessage(message.channel.id, `Invalid option, the possibilities are : \`event ${match[1]} (enable|true|disable|false)\``);
bot.createMessage(message.channel.id, `Invalid option, try: \`event ${match[1]} (enable|true|disable|false)\``);
return;
}
}

View File

@@ -156,12 +156,12 @@ exports.initServer = function initServer(id, cId) {
},
messageReactionAdd: {
d: true,
msg: 'A reaction with emoji :$emoji: has been added to a message from $author in <#$channelId>',
msg: 'A reaction with the emote :$emoji: has been added to a message from $author in <#$channelId>',
c: 'f',
},
messageReactionRemove: {
d: true,
msg: 'A reaction with emoji :$emoji: has been removed from a message from $author in <#$channelId>',
msg: 'A reaction with the emote :$emoji: has been removed from a message from $author in <#$channelId>',
c: 'f',
},
messageUpdate: {