Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

11 total results found

Bot Main File

wiki Documentation

Logging Level: Ex: logging.basicConfig(level=logging.INFO) This code sets the logging level of the bot. Determining the type and amount of verbose messages sent to the console(terminal) where the bot is running. level=logging.INFO is the most basic level w...

Git/GitHub Workflow

wiki

Prerequisite Knowledge Git Practices - for a quick reference so interns can familiarize themselves with Git/GitHub How to Write a Git Commit Message - tutorial on best practices for creating Git Commit messages Git/GitHub Workflow - for our organization-speci...

Bot Token

wiki Documentation

Bot Token: The bot token is the password for the bot. Create a .bot.yaml file in the same directory as the repository. Add token: {your token} to the file (without the brackets)(this is YAML format for a python dictionary).

Code Testing

wiki Documentation

Unit Testing Unit testing is the practice of testing individual units or components of code to ensure they work as expected. A unit refers to the smallest testable part of an application, such as a function or a method. Unit tests typically focus on testing t...

Environmental Setup

wiki Documentation

Getting Started: Learn: Learn Linux/Bash shell basics: Bash and GitBash for Beginners Learn Python basics: Python Basics Course Learn Python Async IO: AsyncIO Documentation Install: Install Git Bash shell: GitBash for Windows Install Python: Python for Wind...

Error Messages

wiki Documentation

Thus far, I have made error messages throughout the bot using the following pattern. These messages are sent to standard output(terminal) when the bot has an error. Due to the structure of discord and the bot, exceptions and errors DO NOT crash the bot regardl...

File Structure

wiki Documentation

This is what the project will look like at its parent folder level (top level). main.py: This is the core file of the Discord bot where the main functionality is implemented. It initializes the bot, loads the different cogs (modules), and handles events. Te...

Getting Data

wiki Documentation

Getting data from Discord: You can get data regarding the discord server environment using parameters to the function when it is in a command decorator. [@commands.command()] Parameters: Ctx Member -> discord.Member: This will give an object that contains da...

GitIgnore Notes

wiki Documentation

.gitignore file We will often want to add files to the repository directory just to make the bot run on our personal machines. We may not want to include these files in the actual repo as they are specific to testing. For instance, a config file that stores us...

Making a New Feature

wiki Documentation

How to Get Started Developing New Features Adding a New Cog Create a new Python file in the cogs/ directory, e.g. my_feature.py. Define a class that inherits from commands.Cog and decorate it accordingly. For example: from discord.ext import commands c...

Potential Options

Form API Integration

Option 1: Google Forms + Google Sheets + Discord Webhook + Apps Script A Google Form would be created for the weekly progress report. It would automatically save responses in a linked Google Sheet. Then, Apps Script would be used to send a message using a Dis...