Fix i forgot to apply
should fix crash when muted
This commit is contained in:
4
index.js
4
index.js
@@ -108,7 +108,7 @@ const newmsg = function(isserver, guildid, channelid, content){
|
||||
ognum = fs.readFileSync(`./bin/servers/${guildid}/ognum.txt`)
|
||||
curnum = fs.readFileSync(`./bin/servers/${guildid}/curnum.txt`)
|
||||
if(curnum >= ognum){
|
||||
if(client.guilds.cache.get(guildid).members.cache.get(client.user.id).permissionsIn(channelid, "SEND_MESSAGES")){
|
||||
if(client.guilds.cache.get(guildid).members.cache.get(client.user.id).permissionsIn(channelid).has("SEND_MESSAGES")){
|
||||
client.guilds.cache.get(guildid).channels.cache.get(channelid).sendTyping()
|
||||
markovgen(true, guildid).then((result)=>{
|
||||
if(result==""||result==" "){
|
||||
@@ -221,4 +221,4 @@ client.on('messageCreate', (msg) =>{
|
||||
})
|
||||
|
||||
// Login to Discord with your client's token
|
||||
client.login(token);
|
||||
client.login(token);
|
||||
|
||||
Reference in New Issue
Block a user