-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from ChocoMeow/beta
Fix issues with mentions, settings, inbox view, and files typo
- Loading branch information
Showing
10 changed files
with
68 additions
and
63 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
discord.py==2.2.3 | ||
discord.py==2.3.0 | ||
pymongo==4.1.1 | ||
dnspython==2.2.1 | ||
tldextract==3.2.1 | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
class Socket { | ||
constructor(url) { | ||
this.url = url; | ||
this.socket = null; | ||
} | ||
|
||
connect(player) { | ||
this.socket = io.connect(this.url); | ||
|
||
this.socket.on('connect', () => { | ||
console.log("Connected to server!"); | ||
}); | ||
|
||
this.socket.on('disconnect', () => { | ||
player.init(); | ||
console.log("Disconnected from server!"); | ||
}); | ||
|
||
this.socket.on('error', (e) => { | ||
console.log(e); | ||
}) | ||
} | ||
|
||
disconnect() { | ||
if (this.socket) { | ||
this.socket.disconnect(); | ||
} | ||
} | ||
|
||
send(msg) { | ||
if (this.socket) { | ||
this.socket.emit('message', msg); | ||
} | ||
} | ||
|
||
addMessageListener(callback) { | ||
if (this.socket) { | ||
this.socket.on('message', callback); | ||
} | ||
} | ||
|
||
removeMessageListener(callback) { | ||
if (this.socket) { | ||
this.socket.off('message', callback); | ||
} | ||
} | ||
class Socket { | ||
constructor(url) { | ||
this.url = url; | ||
this.socket = null; | ||
} | ||
|
||
connect(player) { | ||
this.socket = io.connect(this.url); | ||
|
||
this.socket.on('connect', () => { | ||
console.log("Connected to server!"); | ||
}); | ||
|
||
this.socket.on('disconnect', () => { | ||
player.init(); | ||
console.log("Disconnected from server!"); | ||
}); | ||
|
||
this.socket.on('error', (e) => { | ||
console.log(e); | ||
}) | ||
} | ||
|
||
disconnect() { | ||
if (this.socket) { | ||
this.socket.disconnect(); | ||
} | ||
} | ||
|
||
send(msg) { | ||
if (this.socket) { | ||
this.socket.emit('message', msg); | ||
} | ||
} | ||
|
||
addMessageListener(callback) { | ||
if (this.socket) { | ||
this.socket.on('message', callback); | ||
} | ||
} | ||
|
||
removeMessageListener(callback) { | ||
if (this.socket) { | ||
this.socket.off('message', callback); | ||
} | ||
} | ||
} |