Skip to content

Instantly share code, notes, and snippets.

View Senither's full-sized avatar

Alexis Tan Senither

View GitHub Profile
# HELP avaire_guilds_total Total number of guilds the bot is in
# TYPE avaire_guilds_total gauge
avaire_guilds_total 6655.0
# HELP lavalink_players_current Amount of players
# TYPE lavalink_players_current gauge
lavalink_players_current{node="local",} 26.0
# HELP lavalink_playing_players_current Amount of playing players
# TYPE lavalink_playing_players_current gauge
lavalink_playing_players_current{node="local",} 23.0
# HELP lavalink_uptime_seconds Uptime of the node
@Senither
Senither / xbMarquee.js
Created April 20, 2018 10:58
A formatted version of xb Marquee JS
/*
* $Id: xbMarquee.js,v 1.21 2003/09/14 21:22:26 bc Exp $
*
*/
/* ***** BEGIN LICENSE BLOCK *****
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/

PI: Client Requirements

  • apache2 / enginx
  • php >= v7.2
    • php7.2-common
    • php7.2-curl
    • php7.2-json
    • php7.2-mbstring
    • php7.2-zip
  • composer
@Senither
Senither / MiddlewareStack.java
Created May 18, 2018 20:07
Middleware stack for Ava that adds the system command check for all commands
package com.avairebot.middleware;
import com.avairebot.AvaIre;
import com.avairebot.commands.CommandContainer;
import com.avairebot.contracts.commands.Command;
import com.avairebot.contracts.middleware.Middleware;
import com.avairebot.handlers.DatabaseEventHolder;
import com.avairebot.middleware.global.IncrementMetricsForCommand;
import com.avairebot.middleware.global.IsCategoryEnabled;
import com.avairebot.middleware.global.ProcessCommand;
{
"status": 200,
"data": [
{
"id": "18e174ef078f42758dcd51d495d1096b",
"name": "Watermelon",
"username": "Senither",
"last_save_at": {
"time": 1620684302314,
"date": "2021-05-10T22:05:02.314Z"
{
"status": 200,
"data": {
"id": "18e174ef078f42758dcd51d495d1096b",
"name": "Watermelon",
"username": "Senither",
"last_save_at": {
"time": 1620684302314,
"date": "2021-05-10T22:05:02.314Z"
},