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
91df5ef7ea
commit
f8fc7d76ac
|
@ -6,7 +6,7 @@
|
||||||
[subrepo]
|
[subrepo]
|
||||||
remote = git@github.com:benji7425/discord-bot-core.git
|
remote = git@github.com:benji7425/discord-bot-core.git
|
||||||
branch = master
|
branch = master
|
||||||
commit = 1ed6225c00b084bc9ca144db472e34095c36b00d
|
commit = 8efb033b8f7f421677f7ddb1aa3cc7801202bd54
|
||||||
parent = b76eed0aa4f27c057f5f26e735417363a05b6af9
|
parent = ba6caa6be5cd775f794246736e1395ed7fa9f979
|
||||||
method = merge
|
method = merge
|
||||||
cmdver = 0.3.1
|
cmdver = 0.3.1
|
||||||
|
|
|
@ -42,7 +42,7 @@ module.exports = class Client extends Discord.Client {
|
||||||
}
|
}
|
||||||
|
|
||||||
onReady() {
|
onReady() {
|
||||||
this.user.setGame(InternalConfig.website.replace("http://", ""));
|
this.user.setGame(InternalConfig.website.replace(/^https?:\/\//, ""));
|
||||||
CoreUtil.dateLog(`Registered bot ${this.user.username}`);
|
CoreUtil.dateLog(`Registered bot ${this.user.username}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,8 @@ const InternalConfig = require("./internal-config.json");
|
||||||
|
|
||||||
/**@param param*/
|
/**@param param*/
|
||||||
function handleMessage(client, message, commands, guildData) {
|
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;
|
return;
|
||||||
|
|
||||||
const botName = "@" + (message.guild.me.nickname || message.guild.me.user.username),
|
const botName = "@" + (message.guild.me.nickname || message.guild.me.user.username),
|
||||||
|
|
Loading…
Reference in a new issue