Skip to content

Instantly share code, notes, and snippets.

View AEnterprise's full-sized avatar
⚙️
Making the gears turn

AEnterprise

⚙️
Making the gears turn
View GitHub Profile
class LoggedMessage(Model):
id = BigIntField(pk=True, generated=False) # RENAMED FROM messageid
content = CharField(max_length=2000, collation="utf8mb4_general_ci", null=True)
author = BigIntField()
channel = BigIntField()
server = BigIntField()
type = IntField(null=True)
pinned = BooleanField(default=False)

Dealing with a raid

Things to be aware of before a raid

When a raid happens things tend to go extremely fast so here are some things you can familarize yourself with in advance :

  • Does the server have any automated countermeassures?

    • if so what are their limits?
npm run build
> preact-i18n@1.4.0 build D:\School\MI4\preact-i18n
> npm-run-all --silent clean -p rollup:* -p minify:* -s docs size
$npm_package_source → $npm_package_umd_main...
[!] Error: Could not resolve entry module ($npm_package_source).
$npm_package_source → $npm_package_module...
https://github.com/BuildCraft/BuildCraft/issues/new?body=%3C%21--%0AIf+your+issue+is+more+of+a+question+%28like+how+does+a+machine+work+or+a+sugestion%29%2C+please+use+our+Discord+instead%3A+https%3A%2F%2Fdiscord.gg%2FBuildCraft%0APlease+fill+in+all+relavant+information+below.%0APlease+do+not+put+the+entire+log+here%2C+upload+it+on+pastebin+%28https%3A%2F%2Fpastebin.com%2F%29+or+gist+%28https%3A%2F%2Fgist.github.com%2F%29+and+paste+here+the+link.%0A--%3E%0A%0ABuildCraft+version%3A+7.99.21%0AForge+version%3A+14.23.5.2808%0ALink+to+crash+report+or+log%3A+%7Bnone+given%7D%0ASingleplayer+or+multiplayer%3A+%0ASteps+to+reproduce%3A+%0AAdditional+information%3A+%0AMod+list%3A+%0A%0AMCP+9.42+Powered+by+Forge+14.23.5.2808+257+mods+loaded%2C+257+mods+active%0A%09States%3A+%27U%27+%3D+Unloaded+%27L%27+%3D+Loaded+%27C%27+%3D+Constructed+%27H%27+%3D+Pre-initialized+%27I%27+%3D+Initialized+%27J%27+%3D+Post-initialized+%27A%27+%3D+Available+%27D%27+%3D+Disabled+%27E%27+%3D+Errored%0A%0A%7C+State++%7C+ID+++++++++++++++++++++
new features
- add abilitity to log errirs to sentry for easier tracking
- warning gearbot now redirects to the inbox instead
- sprinkled the logs with a lot of new emoji
- uid command (give it text, like logging, and it prints out all valid user ids it finds in it)
- cleanban (ban but with message removal)
- bean command (ban command without the ban, but with beans!)
- master config entry to disable unwanted commands
- inf info to get detailed info about an infraction
- inf claim to claim a infraction as responsible moderator (ment for manual bans that fail to find an audit log entry)
async def update():
await GearbotLogging.logToBotlog(f"{Emoji.get_chat_emoji('REFRESH')} Updating translations")
project_key = Configuration.getMasterConfigVar("CROWDIN_KEY")
session: aiohttp.ClientSession = bot.aiosession
async with session.get(f"https://api.crowdin.com/api/project/Gearbot/export?key={project_key}&json",) as reply:
if reply.status is not 200:
await GearbotLogging.logToBotlog(f"{Emoji.get_chat_emoji('WARNING')} Crowdin api error, got response code {reply.status}")
else:
response = await reply.json()
if response["success"]["status"] == "built":
import contextlib
import io
from disco.bot import Bot, Plugin
class botplugin(Plugin):
@Plugin.command('ping')
def on_ping_command(self, event):
[22:23:36] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[22:23:36] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[22:23:36] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLServerTweaker
[22:23:41] [Server thread/INFO] [FML]: MinecraftForge v14.23.1.2555 Initialized
[22:23:41] [Server thread/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
[22:23:41] [Server thread/INFO] [FML]: Replaced 1036 ore ingredients
[22:23:41] [Server thread/DEBUG] [FML]: File D:\Games\Windows\Server Mods\config\injectedDependencies.json not found. No dependencies injected
[22:23:41] [Server thread/DEBUG] [FML]: Building injected Mod Containers [net.minecraftforge.fml.common.FMLContainer, net.minecraftforge.common.ForgeModContainer]
[22:23:41] [Server thread/DEBUG] [FML]: Attempting to load mods contained in the minecraft jar file
[12:39:54] [Server thread/ERROR] [BuildCraft]: [transport.facade] Invalid property!
java.lang.RuntimeException: Invalid property value detected!
Property class = class blusunrize.immersiveengineering.api.IEProperties$PropertyBoolInverted
Property = PropertyBoolInverted{name=_0multiblockslave, clazz=class java.lang.Boolean, values=[false, true]}
Possible Values = [false, true]
Value Name = true
Value (original) = true
Value (parsed) = false
Value class (original) = class java.lang.Boolean
Value class (parsed) = class java.lang.Boolean
// ==UserScript==
// @name Wider spellstone
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Make the spellstone world bigger
// @author AEnterprise
// @match http://www.kongregate.com/games/synapticon/spellstone
// @grant none
// ==/UserScript==