seedcbot

command module
v0.0.0-...-72c40e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2024 License: MIT Imports: 15 Imported by: 0

README

SeeDcBot

将DC连接SeeDAO生态

支持功能

  • Notion 悬赏酒馆同步至Dc论坛
  • Discord 活动同步到 Google 日历

安装部署

  1. 下载依赖包:
    go mod init main
    go mod tidy
    
  2. 配置文件
    // 配置 config.json
    {
        // discord token
        "Discord_bot_auth": "",
        // notion token
        "Notion_auth": "",
    
        // 酒馆同步配置
        // database id
        "TavernSync_NotionDb_id": "",
        // dc频道id
        "TavernSync_DcChannel_id": ""
    }
    
  3. 构建项目:
    go build
    
  4. 运行项目:
    chmod 700 ./main
    ./main
    

开发指南

  1. Notion 调用
    notionClient.
    
  2. Discord 调用
    discordSession.
    
  3. Sqlite 调用
    sql.Open("sqlite3", "./....db")
    
  4. Google 调用
    googleClient.
    

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL