mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-23 17:47:27 +00:00
update bot to work in multiple channels
added to work in channels: #speech, #design, #meme, #random, #random-nsfw, #bot-sandbox
This commit is contained in:
parent
51333e30d5
commit
d87936379b
1 changed files with 7 additions and 2 deletions
|
@ -18,7 +18,12 @@ exports.speech = {
|
||||||
description: "gets top claim from spee.ch, coming soon post to spee.ch",
|
description: "gets top claim from spee.ch, coming soon post to spee.ch",
|
||||||
process: function(bot,msg,suffix){
|
process: function(bot,msg,suffix){
|
||||||
|
|
||||||
var ChannelID = "363085078403874823"
|
var ChannelID1 = "363085078403874823"
|
||||||
|
var ChannelID2 = "363086945976320010"
|
||||||
|
var ChannelID3 = "363088045366312962"
|
||||||
|
var ChannelID4 = "363084262028607488"
|
||||||
|
var ChannelID5 = "369896313082478594"
|
||||||
|
var ChannelID6 = "363084227518136322"
|
||||||
|
|
||||||
var command = "!speech"
|
var command = "!speech"
|
||||||
words = suffix.trim().split(' ').filter( function(n){return n !== "";} );
|
words = suffix.trim().split(' ').filter( function(n){return n !== "";} );
|
||||||
|
@ -239,7 +244,7 @@ request.post(
|
||||||
};
|
};
|
||||||
|
|
||||||
function inPrivateOrBotSandbox(msg){
|
function inPrivateOrBotSandbox(msg){
|
||||||
if((msg.channel.type == 'dm') || (msg.channel.id === ChannelID)){
|
if((msg.channel.type == 'dm') || (msg.channel.id === ChannelID1) || (msg.channel.id === ChannelID2) || (msg.channel.id === ChannelID3) || (msg.channel.id === ChannelID4) || (msg.channel.id === ChannelID5) || (msg.channel.id === ChannelID6)){
|
||||||
return true;
|
return true;
|
||||||
}else{
|
}else{
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue