FOSSCU-K Bot is a Telegram bot written in Bash that interacts with GitHub to fetch and display organization members, open issues, and pull requests. Additionally, it provides general-purpose functionalities like fetching user information, downloading profile pictures, and some fun features like calculating IQ for fun.
- List organization members
- List open issues
- List pull requests
- Display help message with available commands
- Fetch user information
- Download profile pictures
- Fun features like calculating IQ, replace words in msgs, shuffle words etc
- Logging facilities for debugging and monitoring
/start
: Display the help message/issues
: Fetch and display open issues/prs
: Fetch and display pull requests/paste
: Use FOSSCU paste api to paste replied message/members
: Fetch and display organization members
-
Clone the Repository
git clone https://github.com/ksauraj/fosscu-bot.git cd fosscu-bot
-
Set Up Telegram Bot
- Create a new bot using BotFather on Telegram and obtain the bot token.
-
Set Up GitHub Token
- Create a personal access token on GitHub with the necessary permissions to read organization members, repositories, issues, and pull requests.
-
Run Initialization Script
Execute the
init.sh
script to interactively set up the bot:chmod +x init.sh bot.sh ./init.sh
Follow the prompts to input your Telegram bot token, GitHub token, GitHub organization name, and Telegram chat ID.
-
Run the Bot
./bot.sh
-
Interact with the Bot
- Send
/start
to display the help message. - Send
/issues
to fetch and display open issues. - Send
/prs
to fetch and display pull requests. - Reply
/paste
to paste given message via fosscu paste api. - Send
/members
to fetch and display organization members.
- Send
init.sh
: Interactive setup script for the bot.utils.sh
: Contains Telegram functions and utilities.bot.sh
: Main script to run the bot.bot.log
: File where log files are stored.
- User Information: Fetch details about a user.
- Profile Picture Download: Download and send a user's profile picture.
- Fun Features: Fun feature to calculate IQ, Shuffle Words, Replace Words and others for entertainment purposes.
Feel free to submit issues and enhancement requests.
util.sh
was ported from here which was written by @ksauraj and @Hakimi0804 from scratch.