Advanced Search
Search Results
17 total results found
DevOps Team
A collection of guides and notes covering our DevOps tools, workflows, and best practices. Use this shelf to stay aligned on how we build, deploy, and maintain our systems.
Product Development Team
Docs and resources from our Product team — covering planning, specs, workflows, and everything in between.
wiki
Form API Integration
Documentation
Bot Main File
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
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
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
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
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
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
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
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
.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
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
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...
KeyCloak SSO R&D
Created main group for the Adventure Ted family. Then, created child groups for separate departments. This allowed easier role assignment through inheritance. (This process outlines the steps to create a default role mapping for typical end user access) ...