Giter Site home page Giter Site logo

csust-got's Introduction

csust-got

Go Report codebeat badge

GitHub Workflow Status (branch) GitHub Workflow Status (branch)

GitHub language count GitHub GitHub code size GitHub repo size GitHub issues GitHub closed issues

csust new telegram bot in go

Deploy

You need to install Docker first.

Clone the project.

git clone [email protected]:CSUSTers/csust-got.git

Then run it with docker-compose.

docker-compose up -d

Upgrade from old version

Clone the newest version.

docker-compose pull
docker-compose up -d

Configuration

Please change configuration in config.yaml.

Modify the token to your bot's token.

Please modify redis.pass in config.yaml,and also please modify requirepass in redis.conf.

Commands

say_hello - 我是一只只会嗦hello的咸鱼
hello_to_all - 大家好才是真的好
recorder - <msg> 人类的本质就是复读机,Bot也是一样的
no_sticker - 启动(反向)流量节省模式
google - <Key Words> 咕果搜索...
bing - <Key Words> 巨硬搜索...
bilibili - <Key Words> 在B站搜索...
github - <Key Words> 在github搜索...
ban_myself - 把自己ban掉rand[40,120]秒
ban - 我就是要滥权!【Admin】
ban_soft - 软禁!使某人失去快乐~【Admin】
fake_ban - [duration] 虚假(真实)的ban
fake_ban_myself - 虚假的ban自己
kill - 虚假(真实)的kill
hitokoto - [type:ab..kl] 一言
hitowuta - 一诗
hito_netease - 一键网抑
forward - [msgID] 让bot转发一条历史消息(可能消息已经被删了)
shutdown - 拔掉bot的电源
boot - 将bot开机
sleep - 该睡觉了
no_sleep - 别睡了
run_after - <duration> <msg> 提醒自己多久之后做什么事
hugencoder - <text> huge编码
hugedecoder - <text> huge解码
getvoice - 角色=<character> 性别=<sex> 主题=<topic> 类型=<type> <text> 通过前述五个参数查询(可选填),获取一段来自游戏《原神》的角色语音(Chinese Olny),数据来源于游戏解包
getvoice_old - getvoice的旧版入口,没有查询功能,数据来源于mys爬虫
chat - <text> 聊会天呗

attachment

Located in attachment folder.

voiceGen

VoiceGen is a api server to search or generate genshin impact npc's voice for the bot.

JetBrains Support

We would like to express our gratitude to JetBrains for supporting our open-source project, a Telegram chatbot developed using their GoLand IDE. Their excellent tools have significantly improved our development experience. Check out JetBrains Open Source Support for more information.

JetBrains Logo

csust-got's People

Contributors

anthony-hoo avatar dependabot-preview[bot] avatar dependabot[bot] avatar hugefiver avatar icceey avatar yujuncen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.