Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const TMI = require('tmi.js')
- const options = {
- options: {
- debug: true
- },
- connection: {
- cluster: "aws",
- reconnect: true
- },
- identity: {
- username: "Coxyca",
- password: "XXXXXX"
- },
- channels: ["iluvatar42"]
- }
- const TMI_Client = new TMI.client(options)
- TMI_Client.connect()
- TMI_Client.on("connected", function(address, port) {
- // TMI_Client.action()
- })
- TMI_Client.on("chat", function(channel, user, message) {
- if (message === "!wr") {
- TMI_Client.say(options.channels[0], "WR : 1:03:47 par nedeahS.")
- }
- if (message === "!chouchou") {
- TMI_Client.say(options.channels[0], "Fainger.")
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement