Skip to content

private-yusuke/botot2

Folders and files

NameName
Last commit message
Last commit date
Jun 13, 2024
Oct 9, 2023
Sep 2, 2022
Sep 26, 2020
Sep 4, 2022
Jun 30, 2022
Dec 1, 2022
Sep 2, 2022
Oct 19, 2020
Jan 4, 2019
Jun 15, 2020
Jul 1, 2022
Jul 1, 2022
Dec 13, 2019
Sep 3, 2022
Jan 6, 2025
Jan 6, 2025
Dec 12, 2022
Sep 2, 2022
Dec 13, 2019

Repository files navigation

botot2

Compile

Misskey インスタンス上で動作するチャットボットです。

  • 日本語の文章を形態素解析して学習し、リプライが飛んできたら支離滅裂な返答をします。
  • 与えられた日本語の文章の係り受け木を描画します。
  • 与えられた Asciimath または LaTeX 形式の数式を描画します。

A chatbot that works on Misskey instances.

Install

You need to have MeCab and CaboCha installed on your computer.

  1. $ git clone https://github.com/private-yusuke/botot2
  2. $ cp config-sample.json config.json
  3. $ mkdir db
  4. $ nano config.json
    • replace i with your token
  5. $ npm install
  6. $ npm run build
  7. $ npm start
    • You can use forever start --killSignal=SIGINT built/ instead.

Modules

内部名(name) 説明(Description)
admin 管理者向けモジュール (module for administrator)
auto-follow フォロバ自動化 (automatic follow-back)
dice サイコロをふる (roll dices)
emoji-list インスタンスに登録された絵文字の列挙 (emoji list)
greeting 挨拶を返す (respond with greeting)
kakariuke-graph 係り受け木の描画 (render the structure of Japanese sentence)
markov-speaking 学習して返答する (learn Japanese sentences and generate replies)
contains filtering feature
math 数式の描画 (render Asciimath, LaTeX), AsciiMath -> LaTeX conversion
othello-redirect contains "othello" -> reply "cc: @ai"
ping /ping -> pong!
sushi ランダム絵文字 (respond with a random emoji)

各モジュールはconfig.jsonでオンオフの設定ができます。 Each module can be either enabled or disabled by modifying config.json.

config.jsonのその他の設定については、各モジュールのソースコードを参照してください。 For other settings in config.json, please see the source codes of each module.


Issue や Pull Request は大歓迎!気づいたことがあれば、ぜひ積極的に教えてください。 We appreciate your issues and pull requests! If you have noticed something, please tell me asap.

Twitter: @public_yusuke