Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김대연
/
khuwitch
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김대연
2020-12-07 05:14:29 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2a6b67144deb8977ed5f27316c64e25f20b155fd
2a6b6714
1 parent
65e9ef06
delete unused js file, add env example explain
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
52 deletions
server/env example
server/openAPIs/twitch_api.js
server/env example
View file @
2a6b671
SOCKET_PORT=
TWITCH_TOKEN=
PAPAGO_ID=
PAPAGO_SECRET=
BOT_USERNAME=
OAUTH_TOKEN=
HOST_URI = [twitch end point url]
SOCKET_PORT= [backend socket server port]
TWITCH_CLIENT= [twitch dev client id]
TWITCH_SECRET= [twitch dev client id secret]
PAPAGO_ID= [papago client id]
PAPAGO_SECRET= [papago client secret]
BOT_USERNAME= [twitch bot name]
OAUTH_TOKEN= [twitch user oauth token]
...
...
server/openAPIs/twitch_api.js
deleted
100644 → 0
View file @
65e9ef0
// const tmi = require('tmi.js');
// const papago = require('./openAPIs/papago_api')
// const ttlserver = require('../socket_server')
// // Define configuration options
// var opts = {
// identity: {
// username: process.env.BOT_USERNAME,
// password: process.env.OAUTH_TOKEN
// },
// channels: [
// 'bachelorchuckchuck'
// ]
// };
// // Create a client with our options
// const client = new tmi.client(opts);
// // Register our event handlers (defined below)
// client.on('message', onMessageHandler);
// client.on('connected', onConnectedHandler);
// // Connect to Twitch:
// client.connect();
// // Called every time a message comes in
// function onMessageHandler (target, context, msg, self) {
// if (self) { return; } // Ignore messages from the bot
// client.say(target, `/color `+changecolor());
// papago.detectchat(msg, client, target);
// if(msg == '척척학사'){
// client.say(target, `안녕하세요 척척학사의 방송입니다.`);
// }
// }
// exports.addChannel = (channel) =>{
// opts.channels.append(channel);
// }
// // Called every time the bot connects to Twitch chat
// function onConnectedHandler (addr, port) {
// console.log(`* Connected to ${addr}:${port}`);
// }
Please
register
or
login
to post a comment