git subrepo pull discord-bot-core
subrepo: subdir: "discord-bot-core" merged: "8efb033" upstream: origin: "git@github.com:benji7425/discord-bot-core.git" branch: "master" commit: "8efb033" git-subrepo: version: "0.3.1" origin: "???" commit: "???"
This commit is contained in:
parent
b65d9e89cf
commit
a0571cfc11
|
@ -6,7 +6,7 @@
|
|||
[subrepo]
|
||||
remote = git@github.com:benji7425/discord-bot-core.git
|
||||
branch = master
|
||||
commit = 1ed6225c00b084bc9ca144db472e34095c36b00d
|
||||
parent = b76eed0aa4f27c057f5f26e735417363a05b6af9
|
||||
commit = 8efb033b8f7f421677f7ddb1aa3cc7801202bd54
|
||||
parent = ba6caa6be5cd775f794246736e1395ed7fa9f979
|
||||
method = merge
|
||||
cmdver = 0.3.1
|
||||
|
|
|
@ -42,7 +42,7 @@ module.exports = class Client extends Discord.Client {
|
|||
}
|
||||
|
||||
onReady() {
|
||||
this.user.setGame(InternalConfig.website.replace("http://", ""));
|
||||
this.user.setGame(InternalConfig.website.replace(/^https?:\/\//, ""));
|
||||
CoreUtil.dateLog(`Registered bot ${this.user.username}`);
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,8 @@ const InternalConfig = require("./internal-config.json");
|
|||
|
||||
/**@param param*/
|
||||
function handleMessage(client, message, commands, guildData) {
|
||||
if (!message.content.startsWith(message.guild.me.toString())) //criteria for a command is the bot being tagged
|
||||
if (!message.content.startsWith(message.guild.me.toString()) //criteria for a command is the bot being tagged
|
||||
&& !message.content.startsWith(message.guild.me.toString().replace("!", ""))) //hacky fix for android mentions not including an exclamation mark
|
||||
return;
|
||||
|
||||
const botName = "@" + (message.guild.me.nickname || message.guild.me.user.username),
|
||||
|
|
Loading…
Reference in New Issue