This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Mastodon - 期限付きミュート | |
| // @namespace https://github.com/unarist/ | |
| // @version 0.10 | |
| // @author unarist | |
| // @match https://*/web/* | |
| // @grant none | |
| // @downloadURL https://gist.github.com/unarist/91da256246fb438811f2e1a05785abad/raw/mastodon-timed-mute.user.js | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $api_key = 'YOUR_API_KEY'; | |
| $api_url = sprintf('https://api.apigw.smt.docomo.ne.jp/dialogue/v1/dialogue?APIKEY=%s', $api_key); | |
| $msg = NULL; | |
| $context = NULL; | |
| while($msg != 'バルス') { | |
| print "You:"; | |
| $msg = trim(fgets(STDIN)); |