Created
September 28, 2016 22:04
-
-
Save voipnorm/ca8a0048b19078b1f2676b90eae266f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Welcome message when a new room or 1:1 is spawned with the bot | |
flint.on('spawn', function(bot) { | |
flint.debug('new bot spawned in room: %s', bot.room.id); | |
//presents different messages based on room or 1:1 | |
if(bot.isGroup){ | |
bot.say("Hi! To get started just type @examplebot hello."); | |
return | |
}else{ | |
bot.say("Hi! To get started just type hello."); | |
return | |
}; | |
bot.repeat; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment