Advertisement
Guest User

Untitled

a guest
May 30th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. const tmi = require("tmi.js");
  2.  
  3. const options = {
  4. options: {
  5. debug: true
  6. },
  7. connection: {
  8. reconnect: true
  9. },
  10. identity: {
  11. username: "yuritheknifewaifu",
  12. password: "no u"
  13. },
  14. channels: ["#yuritheknifewaifu"]
  15. };
  16.  
  17. const client = new tmi.client(options);
  18.  
  19. // Connect the client to the server..
  20. client.connect();
  21.  
  22. client.on("chat", function (channel, user, message, self) {
  23. // Don't listen to my own messages..
  24. if (self) return;
  25.  
  26. console.log(message + user);
  27. if(message === "!info")
  28. client.action("yuritheknifewaifu", "I'm a bot from discord imported to twitch! I currently have no commands. But that'll change very soon! I love you all!");
  29. }
  30.  
  31.  
  32. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement