All Projects → commclassroom → classroom-monitor-bot

commclassroom / classroom-monitor-bot

Licence: MIT License
This is discord bot specifically made for Community Classroom

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to classroom-monitor-bot

kanna kobayashi
Kanna Kobayashi's open source repository (Discord Bot)
Stars: ✭ 16 (-73.33%)
Mutual labels:  discord-js
SataniaBot
The most devilish bot for Discord!
Stars: ✭ 20 (-66.67%)
Mutual labels:  discord-js
discord-leveling-system-ranking-system
A simple rankcard system with the ranking system included using an enmap database, and canvacord
Stars: ✭ 49 (-18.33%)
Mutual labels:  discord-js
ALi
ALi a powerful Discord bot that includes Utility, Fun, Music, Moderation, and much more! (Beta)
Stars: ✭ 97 (+61.67%)
Mutual labels:  discord-js
ShpeeBot-8
An awesome multi-purpose bot for Discord
Stars: ✭ 21 (-65%)
Mutual labels:  discord-js
myChat
MyChat es una aplicación de mensajería en tiempo real con servidores de Discord (similar a un canal de Discord).
Stars: ✭ 30 (-50%)
Mutual labels:  discord-js
sharedsharder
Shard your discord.js bot across devices!
Stars: ✭ 18 (-70%)
Mutual labels:  discord-js
InviteManagerMongoDB
The first InviteManager / Logger / Tracker with mongoDB for Discord.
Stars: ✭ 23 (-61.67%)
Mutual labels:  discord-js
NSFW-Bot
NSFW Bot is an open-source discord bot that has nsfw commands with the nekobot.xyz api.
Stars: ✭ 43 (-28.33%)
Mutual labels:  discord-js
TundraBot
All-in-one Discord bot
Stars: ✭ 49 (-18.33%)
Mutual labels:  discord-js
discord-supervisor-bot
An advanced Discord supervisor bot.
Stars: ✭ 53 (-11.67%)
Mutual labels:  discord-js
lavamusic
lavalink music bot base in erela.js and discord.js v13
Stars: ✭ 210 (+250%)
Mutual labels:  discord-js
Komugari
A simple, multi-functional Discord bot written in Discord.js
Stars: ✭ 39 (-35%)
Mutual labels:  discord-js
discord-activity-monitor
Discord bot to add/remove roles based on user activity
Stars: ✭ 63 (+5%)
Mutual labels:  discord-js
AntiScam-Bot
Discord bot written on discord.js, deletes messages with scam links.
Stars: ✭ 16 (-73.33%)
Mutual labels:  discord-js
Welcome-Bot
A cool multi-purpose discord bot that solves all your problems. I have features such as Moderation, ModLog, Welcome & Goodbye logs, Fun, Music
Stars: ✭ 73 (+21.67%)
Mutual labels:  discord-js
Nereus
A multipurpose discord bot with a focus on music written using Discord.js
Stars: ✭ 46 (-23.33%)
Mutual labels:  discord-js
Kalopsia-Bot
♠️ A Powerful Open-Source Discord,js (v13) Bot written in JavaScript with many moderation, fun, economy, music, utility commands ♠️
Stars: ✭ 60 (+0%)
Mutual labels:  discord-js
delet
[DEPRECATED - see README.md] a Discord bot made using Discord.js
Stars: ✭ 46 (-23.33%)
Mutual labels:  discord-js
lecashbot
A Discord.js economy bot based on the NitroType currency made with JavaScript.
Stars: ✭ 18 (-70%)
Mutual labels:  discord-js

Classroom Monitor Bot

This bot provides functionalities for the Community Classroom Discord server.

Community Classroom is an initiative 'for the students, by the students'. 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 requirements

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

Software requirements

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

Skill requirement

  1. Basic Knowledge of Git & GitHub.
  2. JavaScript
  3. NodeJS
  4. expressJS

Setting up a local environment

Forking repository

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

Clone repository

  1. Now after you have forked the project, it's time to clone it into your local device so that you can work properly.

  2. In your forked repository click on the green code button and copy the provided link. In case of any difficulties, refer to the image below clone

  3. Now on your desktop open Git Bash and type git clone <your-clone-url>.git, and press enter

  4. Now, your forked repository has been cloned in your device! 🎉

Contributing

Before getting started, make sure you have Developer Mode enabled in your Discord. If you're not sure how to enable it, go 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 a PR, rather than making changes to the main/master branch.

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

Setting up application and creating the bot

  1. Go to the Discord Developers Portal page
  2. Login with your Discord credentials. You will see the following screen (image below and for you, it will probably be a blank one) homepage
  3. Now click the New Application button (refer to the image above)
  4. Name your bot (it can be Community Classroom bot or anything else) and press create
  5. You will be at the Developers Portal where you can customize your bot (refer to the image below) dashboard
  6. Now to create your bot instance go to the Bot tab, and press Add Bot followed by Yes, do it in the following popup (refer to the image below) bot instance
  7. You will be redirected to something similar to this screen after adding bot
  8. Go to OAuth2 and copy the Client ID (refer to the image below) App ID
  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. You will be redirected to this screen (image below) where you have to select a server and click on continue and authorize after that Add server
Amazing! You have added the bot to your server; although you might see it's offline. Let's make it go online!

Coding our Bot

  1. Open the folder of your cloned repository with any text editor of your choice (VSCode recommended)
  2. Now go to the Discord Developers Portal page where you created the bot and copy the bot token from the Bot tab (refer to the image below) Bot Token
  3. Now create a file named.env in your root folder. Copy everything from the .env-sample file and replace the BOT-TOKEN value with the copied token. Note that the .env file should be nameless. Create a nameless file, with the extension .env. If you add a name to the file, NPM won't be able to access the token.
  4. In the terminal run, npm install, this will install all the necessary packages
  5. Start our server by running npm start.
  6. All done! The bot is now online!

Supported commands

Commands Functionality
cm!help Shows help with the commands, features, and what the bot offers
cm!hey Says Hey to the user
cm!version Displays the current version of the bot
cm!links Displays all the social accounts of the community
cm!translate <text> Translate the given text to English
cm!meme Send a meme from the r/programmerhumor Reddit

This bot is reserved for functionalities offered for the Community Classroom community.

Commit Message

After making the desired changes and testing, run the 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 and save them 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 the present tense. Not capitalized. No period in 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 behavior
  • perf Commits that are special refactor commits that improve performance
  • style Commits that do not affect the meaning (white-space, formatting, missing semi-colons, etc.)
  • test Commits that add missing tests or correct existing tests
  • docs Commits that affect documentation only
  • build Commits that affect build components like build tool, ci pipeline, dependencies, project version, etc.
  • ops Commits that affect operational components like infrastructure, deployment, backup, recovery, etc.
  • chore Miscellaneous commits. E.g.: modifying .gitignore
Scope

The scope provides additional contextual information.

  • Is an optional part of the format
  • Allowed Scopes depend 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>

The "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 to this

To find suitable/appropriate emojis for the changes, refer to this

Not sure what to type in the summary? Refer to this

Some of the tips to write a 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! Thank you. 😄

Contributors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].