You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The purpose of this bot is to inform users of a Discord server in a specific channel about played matches.
6
-
Continuing from its original purpose, it also allows a specific user group to execute "rcon changelevel <map_name>" to change the level on a retake server.
5
+
This bot enables Discord users to join a custom retake server, inform members of a specific guild about Counter Strike stats or lets you share your favourite gaming moment. Each running instance of this bot is independent of each other and be configured to suit your guild's needs.
6
+
7
+
## Features
8
+
9
+
### Slash Commands
10
+
11
+
- `/map <map>` - allows users to change the current map on the retake server. For users to be allowed to use this command, they must be assigned to a designated role - defined in the properties below. `map` contains the prefered map - also to be defined in a property.
12
+
- `/stas <steamID>` - display this user's Counter Strike stats based on their Steam account. `steamID` is the user's [steam ID](https://www.steamidfinder.com/).
- `/teams <amount>` - divides the current members of a voice channel into teams. `amount` defines the amount of teams to be created. The requester has to be in a voice chat for this feature to work.
15
+
- `/wow <url>` - allows to set a personal gaming moment (wow moment). `url` has to be either a YouTube or a Discord url.
16
+
- `/status` - returns the current status of the retake server.
17
+
18
+
### User Context Commands
19
+
20
+
To execute these commands, right-click on a user, choose "Apps" and then one of the followings commands:
21
+
22
+
- `wow` - returns this user's wow moment for everyone to see.
23
+
- `retake stats` - return this user's stats on the set retake server.
24
+
25
+
### Scheduled Tasks
26
+
27
+
There are two Counter Strike relavant scheduled tasks running:
28
+
29
+
- A collection task to receive discord user information to enable all users to use relevant commands.
30
+
- A join task to send an invite to the retake server after a user has joined the server.
7
31
8
32
## Configuration
9
33
10
-
All of these properties are defined in "config.properties". Mandatory properties are **bold**.
34
+
All of these properties are defined in "config.properties". If you choose to run your own instance of the bot, please consider all these properties to be mandatory. Due to privacy reasons we won't be commiting our own properties into this repository.
11
35
12
36
These properties are relevant to connect to Discord and to limit this bot's functionalities by various factors:
13
-
- **`discord.apiToken` - https://discord.com/developers/applications to receive your individual bot token**
37
+
- `discord.apiToken` - visit the official [Discord Developers Portal](https://discord.com/developers/applications) to receive your individual bot token
14
38
- `discord.allowedRoleId` - the ID of a user group to use commands
15
39
- `discord.thisIsMyHome` - the ID of the server's home base
16
40
17
41
These properties are currently relevant for the CS2 stats feature.
18
-
- **`steam.api` - Steam Web API key**
42
+
- `steam.api` - Steam Web API key
19
43
20
44
The following properties were relevant to connect to the retake server and what maps are allowed to be played:
21
45
- `server.ip` - the IP address of the csgo server
22
46
- `server.port` - the port of the csgo server
23
47
- `server.password` - the RCON password of the csgo server (to define in `server.cfg`)
24
48
- `csgo.maps` - a comma seperated list of allowed maps to switch to (like `de_dust,de_tuscan,...`)
25
49
- `server.delay` - a delay (in seconds) to stop users from spamming a map change.
50
+
- `server.connectLink` - a link to an external website to redirect to the game server (see [this reddit thread](https://www.reddit.com/r/discordapp/comments/13kk1bz/discord_has_stopped_to_support_steam_links_why/) as to why a direct link to Steam isn't possible)
26
51
27
52
The next properties were relevant for a scratched commendation system:
28
53
- `server.ftp.ip` - the IP address to access the server using FTP
@@ -31,7 +56,7 @@ The next properties were relevant for a scratched commendation system:
31
56
- `server.ftp.password` - the FTP password
32
57
33
58
The last property is relevant regarding the bot's wow feature:
34
-
- **`db.url` - the URL of a database for the bot to store all submitted wow clips**
59
+
- `db.url` - the URL of a database for the bot to store all submitted wow clips
35
60
36
61
## Run the bot
37
62
@@ -40,10 +65,7 @@ TO BE DEFINED
40
65
## F.A.Q.
41
66
42
67
### Can I run the bot myself? Do I have to invite the public instance of the bot to my server??
43
-
You can invite the bot to your server or run it yourself by changing the properties in config.properties and following the tutorial above the F.A.Q. section.
44
-
45
-
### Why doesn't ``/map`` work?
46
-
SourceMod is not compatible with Counter Strike 2.
68
+
It would be recommended to run the bot yourself, even though you are able to invite any running instance of it to your server. The downside of inviting an already running instance to your server would be the lack of customization you could do (your own retake server ip, roles, etc.).
Copy file name to clipboardExpand all lines: src/main/java/services/DataService.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ public List<User> getAllGregflixUsers() throws SQLException {
53
53
}
54
54
55
55
public List<GregflixEntry> getGregflixEntriesForThisWeek(Date startOfWeek, Date endOfWeek) throws SQLException{
56
-
PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM gregflix WHERE uploadedDate >= ? AND uploadedDate <= ?");
56
+
PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM gregflix WHERE uploadedDate >= ? AND uploadedDate <= ? ORDER BY title ASC");
gregflix.requestedDone=Great news! %s has been added to Gregflix. Have fun!
75
75
76
76
weeklyReport.introduction=## This Week On Gregflix\nThis week the following entries have been added to Gregflix:\n\n
77
-
weeklyReport.movieList=__Movies:__\n
78
-
weeklyReport.seriesList=__Series:__\n
79
-
weeklyReport.signature=You can request movies and shows by simply responding to me and confirming your selection. You will be notified when your entry was added.\nEnjoy your weekend! :wave:
77
+
weeklyReport.movieList=### Movies\n
78
+
weeklyReport.seriesList=### Series\n
79
+
weeklyReport.howto=You can request movies and shows by simply responding to me and confirming your selection. You will be notified when your entry was added.
80
+
weeklyReport.maintenance=### Maintenance\nDue to updates Gregflix won't be available on %s at %t - the downtime is expected to last %u minutes.
Copy file name to clipboardExpand all lines: src/main/resources/localization_de.properties
+19-17Lines changed: 19 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,17 @@ error.wrongQueryParameters=Die Spieler wurden nicht korrekt mitgegeben.
4
4
error.cantwowabot=Bots haben keine Highlights. :(
5
5
error.hasnowow=Dieser Benutzer hat kein Highlight. F�ge eines hinzu mit ``/wow url``.
6
6
error.invalidwow=Die URL ist nicht g�ltig. Nur Discord oder YouTube Links sind erlaubt.
7
-
error.noteamcreation=No teams could be created.
8
-
error.notincorrectvc=You are not in a voice channel.
7
+
error.noteamcreation=Es konnten keine Teams erstellt werden.
8
+
error.notincorrectvc=Du befindest dich nicht in einem Voice Channel.
9
9
error.mapsdisabled=``/maps`` has been disabled due to SourceMod not working in CS2.\n\nMore info: https://wiki.alliedmods.net/Introduction_to_SourceMod_Plugins#Will_SourceMod_support_Source_2.3F_Will_plugins_for_existing_games_continue_to_work_if_they_are_ported.3F
10
10
error.invalidmap=Diese Map ist nicht g�ltig.
11
11
error.mapnotallowed=Du darfst leider keine Maps wechseln.
12
12
error.majorerror=Etwas lief schief. Wir arbeiten dran.
13
-
info.nomoviefound=No movie/TV show was found.
14
-
info.movieexists=This movie is already on Gregflix or has already been requested.
15
-
info.showexists=This TV show is already on Gregflix.
16
-
info.showrequested=This TV show has already been requested.
17
-
info.showexists.description=Are you requesting this show again for a new season?
13
+
info.nomoviefound=Es wurde kein Film oder Serie gefunden.
14
+
info.movieexists=Dieser Film befindet sich bereits auf Gregflix oder wurde bereits angefordert.
15
+
info.showexists=Diese Serie befindet sich bereits auf Gregflix.
16
+
info.showrequested=Diese Serie wurde bereits angefordert.
17
+
info.showexists.description=Forderst du diese Serie an, da eine neue Staffel verf�gbar ist?
18
18
info.messagesent=Es gibt eine neue Nachricht in csgo-stuff.
19
19
20
20
serverstatus.title=__Retake-Server Status__
@@ -61,16 +61,18 @@ command.compare.valueone.description=Gib die SteamID des ersten Spielers ein
61
61
command.compare.valuetwo.description=Gib die SteamID des zweiten Spielers ein
62
62
command.wow.description=F�ge ein Highlight hinzu
63
63
command.wow.value.description=Gib eine URL an (YouTube oder Discord)
64
-
command.teams.description=Divide your voice chat into teams
65
-
command.teams.value.description=How many teams should be created
64
+
command.teams.description=Teile dein Voice Chat in Teams auf
65
+
command.teams.value.description=Wie viele Teams sollen erstellt werden
66
66
command.status.description=Gibt den aktuellen Status des Retake-Servers zur�ck
67
67
68
-
gregflix.description=Are you looking for this?
69
-
gregflix.confirm=Thanks! Your request has been submitted.
70
-
gregflix.cancel=Okay. Happy searching!
71
-
gregflix.requestedDone=Great news! %s has been added to Gregflix. Have fun!
68
+
gregflix.description=Ist das, was du suchst?
69
+
gregflix.confirm=Danke! Deine Anforderung wurde �bermittelt.
70
+
gregflix.cancel=Okay. Viel Spass beim weiteren Suchen!
71
+
gregflix.requestedDone=Tolle Neuigkeiten! %s wurde auf Gregflix hinzugef�gt! Viel Spass!
72
72
73
-
weeklyReport.introduction=## This Week On Gregflix\nThis week the following entries have been added to Gregflix:\n\n
74
-
weeklyReport.movieList=__Movies:__\n
75
-
weeklyReport.seriesList=__Series:__\n
76
-
weeklyReport.signature=You can request movies and shows by simply responding to me and confirming your selection. You will be notified when your entry was added.\nEnjoy your weekend! :wave:
73
+
weeklyReport.introduction=## This Week On Gregflix\nIn dieser Woche wurden die folgenden Eintr�ge auf Gregflix hinzugef�gt:\n\n
74
+
weeklyReport.movieList=### Filme\n
75
+
weeklyReport.seriesList=### Serien\n
76
+
weeklyReport.howto=Du kannst Filme und Series anfordern, indem du einfach den Namen hier in diesen Chat schreibst und deine Auswahl best�tigst. Du wirst informiert, sobald diese hinzugef�gt wurde.
77
+
weeklyReport.maintenance=### Wartung\nF�r Updates wird Gregflix am %s um %t nicht verf�gbar sein - die erwartete Downtime betr�gt %u Minuten.
gregflix.requestedDone=Great news! %s has been added to Gregflix. Have fun!
72
72
73
73
weeklyReport.introduction=## This Week On Gregflix\nThis week the following entries have been added to Gregflix:\n\n
74
-
weeklyReport.movieList=__Movies:__\n
75
-
weeklyReport.seriesList=__Series:__\n
76
-
weeklyReport.signature=You can request movies and shows by simply responding to me and confirming your selection. You will be notified when your entry was added.\nEnjoy your weekend! :wave:
74
+
weeklyReport.movieList=### Movies\n
75
+
weeklyReport.seriesList=### Series\n
76
+
weeklyReport.howto=You can request movies and shows by simply responding to me and confirming your selection. You will be notified when your entry was added.
77
+
weeklyReport.maintenance=### Maintenance\nDue to updates Gregflix won't be available on %s at %t - the downtime is expected to last %u minutes.
0 commit comments