Advertisement
Guest User

Untitled

a guest
May 22nd, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. var tmi = require('tmi.js');
  2.  
  3. var options = {
  4. options: {
  5. debug: true
  6. },
  7. connection: {
  8. cluster: "aws",
  9. reconnect: true
  10. },
  11. identity: {
  12. username: "username",
  13. password: "oauth:yourshithere"
  14. },
  15. channels: ["fatality321"]
  16. };
  17.  
  18. var client = new tmi.client(options);
  19. client.connect();
  20.  
  21. client.on('chat', function(channel, user, message, self)
  22. {
  23. client.action("fatality321", user['display-name'] + " i literally made this in 2 seconds LUL");
  24. });
  25.  
  26. // DISCORD BOT
  27.  
  28. var Discord = require("discord.js");
  29.  
  30. var bot = new Discord.Client();
  31.  
  32. bot.on("message", function(message)
  33. {
  34. console.log(message.content);
  35. if (message.content === "hi")
  36. {
  37. bot.reply(message, "sup?");
  38. }
  39. });
  40.  
  41. bot.login(username, password);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement