Set activity and set default host
This commit is contained in:
parent
f7a5d0be29
commit
ce564e2ad9
2 changed files with 9 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"http": {
|
||||
"host": null,
|
||||
"port": 3002
|
||||
},
|
||||
"discord": {
|
||||
|
|
10
index.js
10
index.js
|
@ -215,8 +215,8 @@ app.get('/:templateName/', async (req, res) => {
|
|||
}
|
||||
});
|
||||
|
||||
app.listen(config.http.port, () => {
|
||||
logger.info(`Beebot app listening on port ${config.http.port}!`);
|
||||
app.listen(config.http.port, config.http.host, () => {
|
||||
logger.info(`Beebot app listening on ${(config.http.host === null ? 'port ' : config.http.host + ':')}${config.http.port}!`);
|
||||
});
|
||||
|
||||
|
||||
|
@ -301,6 +301,12 @@ const otherCommands = {
|
|||
beebot: `Available commands: ${commands}.\nUse \\\\<command> to flip the template horizontally.${config.discord.public ? "\nInvite link: <" + invitelink + ">" : ""}`
|
||||
};
|
||||
|
||||
client.on('ready', () => {
|
||||
client.user.setPresence({
|
||||
game: { name: 'BBaper' },
|
||||
status: 'online'
|
||||
});
|
||||
});
|
||||
|
||||
client.on('message', async message => {
|
||||
let commandParsed = /^([/\\])(\w+)\b/.exec(message.cleanContent);
|
||||
|
|
Reference in a new issue