Skip to content

Instantly share code, notes, and snippets.

View davidschaeffer2's full-sized avatar

David Schaeffer davidschaeffer2

  • Pennsylvania, US
View GitHub Profile
{% extends "base.html" %}
{% block content %}
<div class="jumbotron text-center">
<h1>Task Editor</h1>
</div>
<div class="container">
<div class="page_content">
@app.route('/create_task/', methods=['GET', 'POST'])
def create_task():
"""
Called when a supervisor wishes to create a new task from scratch.
:return: the rendered task creation page
"""
if request.method == 'GET':
form = CreateTaskForm()
return render_template('create_task.html', form=form)
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, DateField, SubmitField, \
BooleanField, FieldList, FormField, FileField
from wtforms.validators import InputRequired, EqualTo, Email, DataRequired
class DetailedStep(FlaskForm):
"""
"""
import asyncio
import discord
from discord.ext import commands
import youtube_dl
if not discord.opus.is_loaded():
# the 'opus' library here is opus.dll on windows
# or libopus.so on linux in the current directory
# you should replace this with the location the
import discord
import time
from discord.ext import commands
import json
from pathlib import Path
import requests
from cogs.blizzard.config import BLIZZARD_API_KEY, \
is_blizzard_access_token_valid, BLIZZARD_ACCESS_TOKEN