Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.32 KB

README.md

File metadata and controls

36 lines (29 loc) · 1.32 KB

GoStreetBot

A bot that connects Crosst and Telegram.

How to Run

  • Clone this repo
  • Fill in .env according to .env.example. You can refer to the following instructions.
    • BOT_TOKEN: The token obtained from BotFather.
    • CROSST_NICK: The nickname you want to use in Crosst channel.
    • CROSST_PASSWD: A string that will be used to generate a salt, which acts as the unique identifier in Crosst.
    • ADMIN_ID: Your Telegram account UID.
    • CROSST_CHANNEL: The Crosst channel you to join with the bot.
    • SMMS_TOKEN: The token obtained from sm.ms. You need to set this if you want to sync images.
  • Run npm install && npm start.
  • You are good to go. Receive and send messages via your bot, and watch the bot synchronize them to Crosst.

Commands

You can set commonly used commands via BotFather to ease your daily use. Below is a list of example commands (some require moderator/admin permission). Note that it may vary with future updates of Crosst Chat.

help - 帮助
me - 以我身份发消息
listusers - 在线列表
ban - 封禁 (-n [nick])
mute - 禁言 (-n [nick] -t [min])
hash - 获取 hash (-n [nick])
lockroom - 锁房
locksite - 锁站
whisper - 私聊
welcome - 加入自动欢迎
bye - 退出自动欢送

Note: This is a fan project. It doesn't represent the official of Crosst.