Skip to content

Instantly share code, notes, and snippets.

View LucasCoderT's full-sized avatar
🏡
Working From Home

Lucas LucasCoderT

🏡
Working From Home
  • Edmonton, Alberta
  • 05:28 (UTC -07:00)
View GitHub Profile
@LucasCoderT
LucasCoderT / form.py
Created January 31, 2019 01:15
Form framework sample
from discord.ext import commands
import discord
from utils import form_manager
class Form:
@commands.command()
async def startform(self, ctx):
questions = [form_manager.Question("How do you do today?", key="hello0"),
@LucasCoderT
LucasCoderT / systemd_creator.py
Last active January 5, 2019 18:43
Creates systemd service for python scripts. Only tested for Ubuntu 16.04
import sys
import subprocess
# SystemD service creator
## Creates a systemd service file and moves it to the appropriate location and enables it
system_service = """[Unit]
Description={description}
After=multi-user.target