File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11# Unreal Tournament Server Query Discord Bot
2- A discord bot that communicates with Unreal Tournament servers and displays their responses into a text channel.
2+ A discord bot that communicates with Unreal Tournament servers and displays their responses into a text channel.
33
44
55# Requirments
Original file line number Diff line number Diff line change @@ -422,9 +422,9 @@ class Bot{
422422 id -- ;
423423
424424 this . query . getExtended ( server . ip , server . port , message . channel ) ;
425- //woof
425+
426426 } else {
427- //meow
427+
428428 message . channel . send ( `${ config . failIcon } There is no server with that id.` ) ;
429429 }
430430 }
@@ -492,7 +492,7 @@ class Bot{
492492 this . query . getPlayers ( server . ip , server . port , message . channel ) ;
493493
494494 } else {
495- message . channel . send ( `${ config . failIcon } A server with id ${ parseInt ( result [ 1 ] ) - 1 } does not exist.` ) ;
495+ message . channel . send ( `${ config . failIcon } A server with id ${ parseInt ( result [ 1 ] ) } does not exist.` ) ;
496496 }
497497
498498 } else {
Original file line number Diff line number Diff line change @@ -245,14 +245,14 @@ class UT99Query{
245245 } ) ;
246246
247247 this . server . on ( 'listening' , ( ) => {
248- console . log ( "Meow Im a horse " ) ;
248+ console . log ( "Query port listening " ) ;
249249 } ) ;
250250
251251 this . server . on ( 'error' , ( err ) => {
252252 console . trace ( err ) ;
253253 } ) ;
254254
255- console . log ( `this.bAuto = ${ this . bAuto } ` ) ;
255+ // console.log(`this.bAuto = ${this.bAuto}`);
256256 if ( ! this . bAuto ) {
257257 this . server . bind ( config . udpPort ) ;
258258 } else {
You can’t perform that action at this time.
0 commit comments