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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Threading.Tasks; | |
using ALRP.BattleNET; | |
using ALRP.DiscordBot.Models; | |
using Discord; | |
using Discord.Commands; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Discord; | |
using Discord.Commands; | |
namespace DiscordBot.Modules | |
{ | |
[Name("Tickets")] |
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
# | |
# Check if Running as Administrator | |
# | |
If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) | |
{ | |
throw "ERROR: Run as Administrator." | |
} |
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
@echo off | |
COLOR 0B | |
TITLE Arma 3 Server Auto Restarter | |
SETLOCAL EnableExtensions enabledelayedexpansion | |
set EXE=arma3server_x64.exe | |
set /A restartCounter=0 | |
rem Change this to the amount of Minutes you want the server to restart each time. | |
Set minutesToRestart=240 |