This is discord bot specifically made for Community Classroom

Overview

Classroom Monitor Bot

This bot provides functionalities for 'Community Classroom' discord server.

Community Classroom is an initiative 'for the students, by a student'. The initiative aims to provide 'quality education which is free for all'.

Follow us and be a part of this amazing community.


About :

We believe that every student, irrespective of their college or branch, can make it big. Community Classroom is an initiative built on this thought. We provide hands-on training, mentorship and have an inclusive community. All of our courses are FREE and better than most paid courses. We cover every topic in detail and mentor you to stand out and get opportunities by breaking all the barriers. Get expert guidance with career, Open Source, and internships, jobs around the world.

Note to all contributors

Thank you for putting your time to contribute and helping others out. Before contributing do kindly read and follow Code of conduct To get started with contributing go through the following steps

Prerequisites

System requirement

  1. Any system with basic configuration.
  2. Operating System : Windows / Linux / Mac

Software requirement

  1. Node.js installed (If not download it here).
  2. Any text editor of your choice.
  3. Discord account and a discord server where you have admin access

Skill requirement

  1. Knowledge of git & github.
  2. JavaScript
  3. NodeJS
  4. expressJS

Setting up Locale Environment

Forking repository

  1. Firstly to make your own copy of the project you have to fork the repository. To fork the repository press the fork button. In case of any difficulty refer to the image below Demo fork image

Clone repository

  1. Now after you have forked your project its time to clone it into your local device so that you can work on it
  2. In your forked repository click on the green code button and copy the provided link. In case of any difficulty refer to the image below Demo copy image
  3. Now in your desktop open git bash and type git clone <your-clone-url>.git and press enter
  4. Now, your forked repo has been cloned in your device

Contributing

Before starting make sure you have developer mode enabled in your discord If not then got to Settings > Advanced > Developer Mode: ON

Creating a branch

Whenever you want to contribute to any project it is a good practice to make a separate branch and push it as PR rather than making changes to the main/master branch

  1. git checkout -b <your-branch-name> will make a separate branch and will take you to it
  2. Now you are ready to make your desired changes

Setting up application and creating bot

  1. First visit here
  2. Login with your discord credentials and will see the screen(image below and for you it will probably be a blank one) home page
  3. Now click the New Application button(refer to image above)
  4. Name your bot and press create
  5. Now you will appear at the application dashboard where you can customize your bot(refer to image below) dashboard
  6. Now to create your bot instance go to Bot tab and pressAdd Bot followed by Yes,do it in the following popup(refer to image below) bot instance
  7. Now you will appear to this screen(image below) bot dashboard
  8. Go to OAuth2 and copy the client id(refer to image below) bot dashboard
  9. Now to invite the bot to your server, paste this link in your browser https://discord.com/api/oauth2/authorize?client_id=<app-id>&permissions=8&scope=bot and just replace <app-id> with your copied client id
  10. Now you will be redirected to this screen(image below) where you have to select a server and click on continue and authorize after that server page
Now your bot will be added to your server but it is still offline. So let's start...

Coding our Bot

  1. Open the folder of your cloned repository with any text editor of your choice
  2. Now go to developers portal where you created the bot and copy the bot token from Bot tab(refer to image below) bot token
  3. Now create a .env file in your root folder and copy everything from .env-sample file and replace the BOT-TOKEN value with the copied token
  4. In the terminal run npm install, this will install all the packages
  5. Then to start our server run npm start, this will start our server and the bot will be online

Commands Supported :

cm!help - Helps with the commands and features what the bot offers.

cm!hey - Says 'Hey' to the user.

cm!version - Displays the current running version of the bot.

cm!links - Displays all the social accounts of the community.

This bot is reserved for functionalities offered for community classroom community.

=======

Commit Message

After making the desired changes and testing use git add . command to add the files to the Git staging area. This area contains a list of all the files you have recently changed.

git commit -m <Type in the commit message> to commit your changes to save your changes to the local repository.

We follow conventional commits specifications for our commit messages

Commit Message Format

Each commit message consists of a header, a body, and a footer.

<header>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>

Any line of the commit message cannot be longer than 100 characters.

Commit Message Header

<type>(<scope>): <short summary>
  │       │             │
  │       │             └─⫸ Summary in present tense. Not capitalized. No period at the end.
  │       │
  │       └─⫸ Commit Scope: animations|bazel|benchpress|common|compiler|compiler-cli|core|
  │                          elements|forms|http|language-service|localize|platform-browser|
  │                          platform-browser-dynamic|platform-server|router|service-worker|
  │                          upgrade|zone.js|packaging|changelog|dev-infra|docs-infra|migrations|
  │                          ngcc|ve
  │
  └─⫸ Commit Type: build|ci|docs|feat|fix|perf|refactor|test

The <type> and <summary> fields are mandatory, the (<scope>) field is optional.

Type

Must be one of the following:

  • feat Commits, that adds a new feature
  • fix Commits, that fixes a bug
  • refactor Commits, that rewrite/restructure your code, however does not change any behaviour
  • perf Commits are special refactor commits, that improves performance
  • style Commits, that do not affect the meaning (white-space, formatting, missing semi-colons, etc)
  • test Commits, that add missing tests or correcting existing tests
  • docs Commits, that affect documentation only
  • build Commits, that affect build components like build tool, ci pipeline, dependencies, project version, ...
  • ops Commits, that affect operational components like infrastructure, deployment, backup, recovery, ...
  • chore Miscellaneous commits e.g. modifying .gitignore
Scope

The scope provides additional contextual information.

  • Is an optional part of the format
  • Allowed Scopes depends on the specific project
  • Don't use issue identifiers as scopes
Summary

Use the summary field to provide a succinct description of the change:

  • use the imperative, present tense: "fix" not "fixed" nor "fixes"
  • don't capitalize the first letter
  • No dot (.) at the end
  • Your commit message should not contain any whitespace errors
  • Remove unnecessary punctuation marks

Commit Message Body

  • The body should include the motivation for the change and contrast this with previous behavior. This commit message should explain why you are making the change.
  • Is an optional part of the format
  • Use the imperative, present tense: "fix" not "fixed" nor "fixes"
  • This is the place to mention issue identifiers and their relations

Commit Message Footer

The footer can contain information about breaking changes and is also the place to reference GitHub issues, and other PRs that this commit closes or is related to.

BREAKING CHANGE: <breaking change summary>
<BLANK LINE>
<breaking change description + migration instructions>
<BLANK LINE>
<BLANK LINE>
Fixes #<issue number>

Breaking Change section should start with the phrase "BREAKING CHANGE: " followed by a summary of the breaking change, a blank line, and a detailed description of the breaking change that also includes migration instructions.

It's an optional part of the format.

Creating commits

  • type: :emoji: summary (changes made)
    

To know which type to use refer this

To find suitable emoji for the changes refer this

For summary refer this

Some of the tips to write good commit message

  • Separate the subject from the body with a blank line
  • Your commit message should not contain any whitespace errors
  • Remove unnecessary punctuation marks
  • Do not end the subject line with a period
  • Capitalize the subject line and each paragraph
  • Use the imperative mood in the subject line
  • Use the body to explain what changes you have made and why you made them.
  • Do not assume the reviewer understands what the original problem was, ensure you add it.
  • Do not think your code is self-explanatory
  • Follow the commit convention defined by your team

Example

feat: :sparkles: add the amazing button

Contributors :

Every contributor's efforts and time are deeply appreciated 😄

You might also like...

A configurable Discord Community server nuking bot with a small twist.

A configurable Discord Community server nuking bot with a small twist.

Quby Bot A configurable Discord Community server nuking bot with a small twist. The bot will perform these actions in the following order: When the bo

Sep 7, 2022

Discord community bot for genicsblog.com

genics-bot Source code of discord bot for the genicsblog.com community. Local setup Clone the repo and cd: git clone https://github.com/genicsblog/gen

Oct 3, 2022

OpenAI Discord Community's GPT-3 powered DALL·E 2 support bot

DALL·E Discord Bot OpenAI Discord Community's GPT-3 powered DALL·E 2 support bot This repository hosts the code for the OpenAI Discord Community's GPT

Nov 16, 2022

[WIP] Meet Koshiro! Our official Discord Bot, Open Source and Community builded. 🛸

[WIP] Meet Koshiro! Our official Discord Bot, Open Source and Community builded. 🛸

Koshiro Meet Koshiro! Our official Discord Bot, Open Source and Community builded. 🛸 Getting Started Clone the repository git clone https://github.co

Nov 19, 2022

Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js

Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js

Cyrus Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js Invite : Click here Vote : Top

Dec 3, 2022

A Discord bot project made with the npm package discord.js version 14

A Discord bot project made with the npm package discord.js version 14

A Discord bot project made with the npm package discord.js version 14 and it's job to manage mails on a server, and this project includes only one Database: Quick.db. This project also handles Slash commands.

Jan 6, 2023

A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on websites!

discord-web-api A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on

Jun 28, 2022

Discord Neura - a Discord bot framework built on discord.js

Discord Neura Description Discord Neura is a Discord bot framework built on discord.js. Features Command Handler, Arguments, Preconditions and Listene

Mar 23, 2022

Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot that handles all your server needs.

Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot that handles all your server needs.

Welcome to Co-Pilot Bot repo! 👋 🤖 Co-Pilot (All-in-one Discord Bot) Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot

Nov 11, 2022
Releases(v1.10.7)
Owner
Kaiwalya Koparkar
Community Manager Intern @dokc Community member @EddieHubCommunity, Community Coach @sawolabs, Full Stack Developer | Open Source Enthusiast | Blogger
Kaiwalya Koparkar
A community Discord bot testnet faucet for thirdweb community. 💻🌏

Thirdweb Faucet (Discord Bot) ?? Nominate (@WarenGonzaga) as GitHub Star. If you appreciate his hardwork and dedication to open source. A dedicated Di

Waren Gonzaga 4 Aug 6, 2022
About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this command handler.

discordJS-V14 About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this

Umut Bayraktar 36 Dec 28, 2022
Discord-Bot - You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have published on my youtube channel.

Discord-Bot You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have publishe

Umut Bayraktar 114 Jan 3, 2023
The Discord Bot for the AvdanOS Community Discord server.

Tinan The Discord Bot for the AvdanOS Community Discord server, made using discord.js v13.8. How to contribute Forking Step 1: Make a contribution for

AvdanOS 11 Dec 1, 2022
A discord bot made using discord.js and discord-player

Musx A custom discord bot that can play music in your server ?? Add the bot to your server If you are looking for a music bot for your Discord server

Shashwat Singh 4 Mar 28, 2022
This bot is a cool Discord bot made in discord.js using Node.JS

Anti-Crosspost Discord Bot This bot is a cool Discord bot made in discord.js using Node.JS. It detects when a user cross-posts a message in multiple c

Muhammad Usman Mithani 4 May 31, 2022
It is a discord bot bot which can play lofi song in different language 24/7. It has premium system and cool embed looks with buttons. It can play youtube songs, playlists. This bot code was made by Supreme#2401. It uses djs V12

Lofi-Radio-Music-Bot It is a discord bot bot which can play lofi song in different language 24/7. It has premium system and cool embed looks with butt

Diwas Atreya 89 Jan 2, 2023
Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total contributions.

Remoklify - Gitlift Discord Bot Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total

Remoklify 3 Mar 20, 2022
An open source community powered Discord bot to stop and remove the trash from the SW workshop.

SW Anti Reuploads & Trash Discord bot An open source community powered Discord bot to stop and remove the trash from the SW workshop. SW Discord · Cre

SIMPLE MARK 4 Jun 20, 2022
A Discord bot designed to build better communities by encouraging a positive and constructive relationship between community and staff.

Suggestions A Discord bot designed to build better communities by encouraging a positive and constructive relationship between community and staff. St

Suggestions 4 Dec 24, 2022