Closed ghost closed 8 years ago
@alexkavon does #59 work?
That works, however I was thinking of something like:
config.yml
name: modubot
Bot.ts
process.title = this.config.name
Or something....
That would be one more config option that you'll need to edit. I think irc server + nick should be unique enough. +@reynir thoughts?
I would use either just the nick, or possibly the realname. I can't really think of a situation where you wouldn't want it to be one of those.
Cool. The server is there just so you can differentiate between the different processes if you have a Modubot instance with the same nick connected to two+ different servers.
or in Bot.ts
process.title = this.config.name || 'modubot';
kamal_ learn 2 default configs pl0x
https://github.com/modubot/modubot.js/tree/master/config
Modubot falls back the default config file if a key is missing from the config.yml file. Why are we still discussing this?
k
Your PR looks good then.
Merged #59
Add a config option for naming the bot and use a lowercase version of that name for the process.title in nodejs