Skip to content

Mushroom is a Discord Bot That Collect Github Repositories and Accounts, Get Repos Information in Discord Server and Insert them in Discord Server With Cron Job

License

Notifications You must be signed in to change notification settings

Yazan98/Mushroom

Repository files navigation

Bot Logo

Mushroom Bot

Docker Image CI

Screenshots

  1. Get Account Information
  2. Get Account Repositories Information
  3. Get Repository Information
  4. Help Message
  5. Add New Library
  6. Cron Job Libraries

Description

While Im Tracking Specific Repositories i need to go to each Repository and Check them or Twitter or Github Feed to See whats New in specific Repositories so i need to go to Many places to see the news but rather than going to all of them why not to build a cron job to run every day to check all of them in github releases and once a new release submitted in github release discord bot will send a message with it

Technologies Used

  1. Discord Server
  2. Discord Bot
  3. NestJs Framework
  4. Eslint
  5. Typescript
  6. Docker Image Configuration

Supported Features

  1. Get Github Account Information
  2. Get Repository Information
  3. Get Account Repositories
  4. Get Github Repository Tags
  5. Discord Bot Configuration
  6. Cron Job To Run Everyday to Track Libraries

Setup

Before You Start Make Sure to Add All Libraries to json Files to let Mushroom Track All of them in Libraries Folder You Will See More Than Json File add The Required Libraries in these Json Files

The Following Steps is Required to Configure The Project

  1. Add Your Secrete Keys to ApplicationKeysManager Class (Github Username, Github Token, Discord Token)
  2. Add Your Discord Channels in channels.json inside Libraries Folder (Names Should not be Changed)
  3. When Build Docker Image Change isLocalEnv inside ApplicationKeysManager to False to Change the Directory to Docker Image Path
  4. Execute npm run build in Terminal to Generate Production Code
  5. Build Docker Image By Creating Docker Hub Account Then Create A Repository to Upload to
    docker build . --file Dockerfile --tag account/repository:latest
    docker push account/repository:latest
  1. Open Virtual Machine With Docker Installed
  2. Install and Run The Docker Image
    docker pull account/repository
    docker run account/repository
  1. After Push You Will see The Bot is Online and Waiting for a Command or When Cron Job Callback Called

Note:

If you want an App Similar to This Application With Slack App Configuration Check Zilon

License

Copyright (C) 2022 Mushroom is An Open Source Project (Licensed under the Apache License, Version 2.0)