Skip to content

eyemono-moe/python-traq-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

traQ BOTサーバーライブラリ

Downloads

PythonでtraQ BOTサーバーを簡単に作るためのライブラリです。

traQ->BOTサーバーへのイベントの受け取り部分を補助します。BOTサーバー->traQへのリクエストを行うためのAPIクライアントは含んでいません。motoki317/traq-py等を利用してください。

インストール

pip install traq-bot

サンプル

from traq_bot import TraqBot
import os


bot = TraqBot(os.environ.get("BOT_VERIFICATION_TOKEN"))

@bot.message_created
def print_message_data(data: dict):
    print(data)


if __name__ == '__main__':
    bot.run(8080)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages