Skip to content

Instantly share code, notes, and snippets.

View yuta0801's full-sized avatar

yuta yuta0801

View GitHub Profile
@yuta0801
yuta0801 / server.js
Created November 17, 2018 15:28
ファイル整理してたらNode.js始めたばかりの頃にリバースプロキシ風の処理を自作したコードが出てきて懐かしいので晒す
const app = require('http').createServer(handler)
const io = require('socket.io')(app)
const path = require('path')
const fs = require('fs')
const mime = require('mime-types')
io.sockets.on('connection', socket => {
socket.on('socket', data => {
console.log(data)
io.sockets.emit('socket',data)
@yuta0801
yuta0801 / help.lua
Created March 29, 2018 13:40 — forked from NotSoSuper/help.lua
NotSoBot Help Documentation
Complete command list of NotSoBot <170903342199865344>:
Owner: NotSoSuper <130070621034905600>
Prefix: .
* = Not Required
^ = Bot Owner Only
^^ = Server Admin Only
"/'s" in commands show aliases for the command (Ex: ".reverse/r <text>" Command can be run with .reverse or .r)
<max_messages> = The number of messages to search through
<image> = The image URL, @discord_user, the users name, discord/custom emoji, or, nothing inputted which will search through 25 messages for embeds or attachments
<image-face> = Image requires a HUMAN FACE to be included
@yuta0801
yuta0801 / GetYouTubeLiveChat.md
Last active May 31, 2023 15:47
YouTubeLiveChatを取得する

YouTubeライブチャットを取得する

注意:ライブラリなどを使用すれば更にかんたんに安定に取得できる可能性がありますが、

ここではライブラリを使わずにAPIKEYだけで使えるAPIのみで取得することを優先しています

1, ライブIDを取得する

この工程は省略できますが、毎回IDを教えて上げる必要があります。