This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use colored::*; | |
use log::*; | |
use std::{fs, thread::ThreadId}; | |
/// Please ignore the evil that is parsing debug output | |
fn parse_thread_id(id: &ThreadId) -> String { | |
let id_str = format!("{:?}", id); | |
let parsed = (|| { | |
let start_idx = id_str.find('(')?; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use super::states; | |
use bevy::{prelude::*, ecs::{Schedule, ThreadLocalExecution, SystemId, TypeAccess, ArchetypeAccess, ParallelExecutor}}; | |
use std::borrow::Cow; | |
pub struct GamePlugin; | |
impl Plugin for GamePlugin { | |
fn build(&self, app: &mut AppBuilder) { | |
app | |
.add_resource(GameState::Stage1(SubState::Done)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import discord | |
from discord.ext import commands | |
from threading import Thread | |
import asyncio | |
import sys | |
import traceback | |
import datetime | |
TOKEN = '' | |
# Expects the following to contain IDs pulled from discord |
NewerOlder