## twitter TWITTER_CONSUMER_KEY=”” TWITTER_CONSUMER_SECRET=”” TWITTER_ACCESS_TOKEN=”” TWITTER_ACCESS_TOKEN_SECRET=””
## imastodon MASTODON_HOST=”” TB_RANKING_CLIENT_ID=””
| # -*- coding: utf-8 -*- | |
| # imastodonにあかり大好きbot的なことをする | |
| # | |
| # usage: push_imastodon_misaki.rb | |
| require 'rubygems' | |
| require 'bundler' | |
| Bundler.require(:default) | |
| Dotenv.load | |
| # CONST |
| const fs = require('fs'); | |
| const { exec } = require('child_process'); | |
| const Discord = require('discord.js'); | |
| const client = new Discord.Client(); | |
| const token = '***'; | |
| const channelId = '***'; | |
| const target = process.env['HOME'] + '/.forever/****.log'; | |
| var latest; |
| # -*- coding: utf-8 -*- | |
| # IME用アイマス辞書をmecab辞書作成用のcsvに変換する | |
| # | |
| # usage: convert_imasdic_to_csv.rb | |
| require 'csv' | |
| word = {} | |
| # アイマスIME辞書をmecabで読み込むcsvに変換する | |
| # コストは推定させるため空白とする | |
| # カンマが入っているデータはcsvでエラーになるので削除 |
| const fs = require('fs'); | |
| const Canvas = require('canvas'); | |
| var offset = { top: {x: 0, y: 0}, bottom: {x: 250, y: 130} }; | |
| var actualWidth = { top: 0, bottom: 0 }; | |
| if (process.argv.length < 3) { | |
| console.error('Usage: 5000choyen.js "text1" ["text2"]'); | |
| process.exit(1); | |
| } |
| 02,32 * * * * (cd $HOME/scripts/rb && ruby pull_imastodon_timeline.rb > /tmp/pull_imastodon_timeline.log 2>&1) > /dev/null | |
| 06 00,06,12,18 * * * (cd $HOME/scripts/py && $HOME/.pyenv/shims/python make_wordcloud.py > /tmp/make_wordcloud.log 2>&1) > /dev/null | |
| 10 00,06,12,18 * * * (cd $HOME/scripts/rb && ruby push_imastodon_trendon.rb >> /tmp/push_imastodon_t.log 2>&1) > /dev/null |
## twitter TWITTER_CONSUMER_KEY=”” TWITTER_CONSUMER_SECRET=”” TWITTER_ACCESS_TOKEN=”” TWITTER_ACCESS_TOKEN_SECRET=””
## imastodon MASTODON_HOST=”” TB_RANKING_CLIENT_ID=””
| # -*- coding: utf-8 -*- | |
| # imastodonにミリシタ3周年イベントのランキング画像を送信する | |
| # https://twitter.com/imas_ml_td_a | |
| # | |
| # usage: push_imastodon_ml_3rd_ranking.rb | |
| require 'rubygems' | |
| require 'bundler' | |
| Bundler.require(:default) | |
| Dotenv.load |
| date | name | |
|---|---|---|
| 0401 | 古賀小春 | |
| 0401 | 花海佑芽 | |
| 0402 | 都築圭 | |
| 0402 | 花海咲季 | |
| 0403 | 天海春香 | |
| 0404 | ヘレン | |
| 0404 | 紅井朱雀 | |
| 0405 | 郁田はるき | |
| 0406 | 喜多日菜子 |