Skip to content

Commit

Permalink
Merge pull request #11 from urbanterror/master
Browse files Browse the repository at this point in the history
merge community changes
  • Loading branch information
hydrum committed Sep 22, 2023
2 parents e3aba26 + f52db5a commit 1dd42ea
Show file tree
Hide file tree
Showing 74 changed files with 7,876 additions and 1,560 deletions.
10 changes: 0 additions & 10 deletions .classpath

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build and deploy
on: [push]
jobs:
Build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build with Gradle
run: ./gradlew build
- name: Deploy jar to server
uses: garygrossgarten/github-action-scp@release
with:
local: PickupBot.jar
remote: /home/pug/PickupDiscord/PickupBot.jar
host: ${{ secrets.HOST }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_PASSWORD }}
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# Log file
*.log
*.lck

# BlueJ files
*.ctxt
Expand All @@ -21,3 +22,18 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
/bin/

# config file
*.json
*.env

# Gradle
.gradle/
gradle/

#IntelliJ
.idea/
build/

#Database
*.db
17 changes: 0 additions & 17 deletions .project

This file was deleted.

12 changes: 0 additions & 12 deletions .settings/org.eclipse.jdt.core.prefs

This file was deleted.

42 changes: 0 additions & 42 deletions CHANGELOG.txt

This file was deleted.

74 changes: 73 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,73 @@
# PickupDiscord
[![urtpickup](https://i.imgur.com/f9DaZDT.png)](https://discord.gg/An8hxdM)

# UrT-Pickup
[![Discord](https://img.shields.io/discord/117622053061787657)](https://discord.gg/An8hxdM)


## About
This is a network of Urban Terror servers associating players through [Discord](https://discord.gg/An8hxdM) thanks to a simple java bot.

From this discord server you can:
- play competitive matchmaking in any team-based game type,
- challenge other users in individual modes such as GunGame, LMS or KnockOut matches :resurgence:,
- improve your skills with the SkeetShoot and AimTraining modes both with record tracking :resurgence:,
- request a game server for a few hours for your personal use.


## Commands

### User Commands
- !add <gametype>
- !remove <gametype>
- !maps displays the map list for each gametype.
- !map <gametype> <mapname>
- !status to get information on the queues.
- !help <command>
- !surrender to abandon your match.
- !live sends info on the live matches.
- !pick <1/2>
- !votes to get the current votes.
- !register <urtauth>
- !country <COUNTRY CODE> See:` <https://datahub.io/core/country-list/r/0.html>
- !elo </@DiscordUser|urtauth/>
- !stats </@DiscordUser|urtauth/>
- !top10 displays the top 10 players
- !topcountries ordered by average ELO
- !topwin: players with the best win ratio
- !topkdr: players with the best KDR
- !match <id>
- !last </@DiscordUser|urtauth/>


### Admin Commands

- !lock to prevent commands from PUBLIC channel.
- !unlock
- !reset <all/cur/type/id>
- !reboot
- !getdata <match id>
- !enablemap <ut4_map> <gametype>
- !disablemap <ut4_map> <gametype>
- !rcon <serverid> <rconstring>
- !forceadd <gamemode> </@DiscordUser|urtauth/>
- !enablegametype <name> <teamsize>
- !disablegametype <name>
- !showgameconfig <gametype>
- !ban <urtauth> <reason> <duration> (duration=1y1M1w1d1h1m1s)
- !unban <urtauth>
- !baninfo </@DiscordUser|urtauth/>
- !showservers
- !addserver <ip:port> <rcon> <region>
- !enableserver <id>
- !disableserver <id>
- !updateserver <id> <rcon>
- !showmatches displays the queues AND live matches
- !unregister <urtauth>
- !country <urtauth> <COUNTRY CODE>
- !addchannel <#name> <public/admin>
- !removechannel <#name> <public/admin>
- !addrole <@role> <admin/superadmin>
- !removerole <@role> <admin/superadmin>


[![love](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com) [![java](https://forthebadge.com/images/badges/made-with-java.svg)](https://forthebadge.com) [![forthebadge](https://forthebadge.com/images/badges/powered-by-black-magic.svg)](https://forthebadge.com)
30 changes: 20 additions & 10 deletions TODO.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
TODO:
URGENT:
///
- !ringer function
- !game ID -> match details.
\\\

- gtv (needs !enablegtv/!disablegtv option)
- !pro
- Enhanced 2v2 with mate !2v2 @gost0r to play your 2v2 with him.


( ) rework match abort/cancel/end behaviour to be more consistent
( ) !showmatch starttime
Expand Down Expand Up @@ -84,13 +94,13 @@ approach:
Remaining issue: e.g.: TeamSize=4, 1x 3p, 2x 2p : solution: 2 2 vs 3 1 = algo: 3 vs 2 1 => break up 3rd team


REPORT SYSTEM:
!report auth leave/noshow/insult/troll
to defend yourself: !excuse <reason>
if 3 games a report
msg to admins to review case !review <number>
!accept !decline
suspended for 1d, 3d, 1w, 2w, 1m, 3m, perm
show bans and time !banlist
ability to ban ppl as admin !permban <auth> ? if temp bans wished: !ban <auth> <1d> ex.?
end bans: !pardon <auth>
//REPORT SYSTEM:
//!report auth leave/noshow/insult/troll
//to defend yourself: !excuse <reason>
//if 3 games a report
//msg to admins to review case !review <number>
//!accept !decline
//suspended for 1d, 3d, 1w, 2w, 1m, 3m, perm
//show bans and time !banlist
//ability to ban ppl as admin !permban <auth> ? if temp bans wished: !ban <auth> <1d> ex.?
//end bans: !pardon <auth>
44 changes: 44 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
plugins {
id 'java'
}

group 'org.example'
version '1.0-SNAPSHOT'

repositories {
mavenCentral()
}

sourceSets {
main {
java {
srcDirs = ['src']
}
}
}

dependencies {
implementation 'io.sentry:sentry:1.7.23'
implementation 'commons-io:commons-io:2.6'
implementation 'org.apache.commons:commons-lang3:3.10'
implementation 'javax.websocket:javax.websocket-api:1.1'
implementation 'org.json:json:20190722'
implementation 'org.xerial:sqlite-jdbc:3.8.11.2'
implementation 'org.glassfish.tyrus.bundles:tyrus-standalone-client:1.9'
implementation 'org.slf4j:slf4j-simple:1.7.9'
implementation 'io.github.cdimascio:dotenv-java:2.2.0'
}

jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE

manifest {
attributes 'Main-Class' : 'de.gost0r.pickupbot.PickupBotDiscordMain'
}
destinationDirectory.set(file("$rootDir/"))
archiveName 'PickupBot.jar'

from {
configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
33 changes: 0 additions & 33 deletions cmds.txt

This file was deleted.

3 changes: 0 additions & 3 deletions config.json

This file was deleted.

24 changes: 24 additions & 0 deletions configs/1V1.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
set sv_dlURL "maps.pugbot.net"
set sv_floodprotect "8"
set sv_hostname "Pickup @ WWW.DISCORD.ME/URT"
set sv_pure "0"
set sv_sayprefix "^4MissTS^3: "
set sv_timeout "60"
sets " Discord" "www.discord.io/urbanterror"
set auth_enable "1"
set auth_notoriety "0"
set auth_owners "13 618 2797"

set fraglimit "15"
set timelimit "0"
set g_allowVote "31"
set g_friendlyFire "2"
set g_gametype "4"
set g_gear ""
set g_inactivity "40"
set g_inactivityAction "0"
set g_matchmode "1"
set g_maxrounds "0"
set g_roundtime "1"
set g_strattime "0"
set g_swaproles "0"
24 changes: 24 additions & 0 deletions configs/2V2.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
set sv_dlURL "maps.pugbot.net"
set sv_floodprotect "8"
set sv_hostname "Pickup @ WWW.DISCORD.ME/URT"
set sv_pure "0"
set sv_sayprefix "^4MissTS^3: "
set sv_timeout "60"
sets " Discord" "www.discord.io/urbanterror"
set auth_enable "1"
set auth_notoriety "0"
set auth_owners "13 618 2797"

set fraglimit "15"
set timelimit "0"
set g_allowVote "31"
set g_friendlyFire "2"
set g_gametype "4"
set g_gear ""
set g_inactivity "40"
set g_inactivityAction "0"
set g_matchmode "1"
set g_maxrounds "0"
set g_roundtime "1"
set g_strattime "0"
set g_swaproles "0"
Loading

0 comments on commit 1dd42ea

Please sign in to comment.