aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-02-25 11:52:49 -0500
committerUnknown <jtsshieh@outlook.com>2018-02-25 11:52:49 -0500
commitfb24fdcadd13beee78f8e89d293e31764a7c059d (patch)
tree898da10c1871eb05743df21b9cfda611fad8e736
parentf408263a6e35d7bef54ea9bf1c689cdf5fe90a31 (diff)
downloadPokeBot-fb24fdcadd13beee78f8e89d293e31764a7c059d.tar.gz
PokeBot-fb24fdcadd13beee78f8e89d293e31764a7c059d.tar.bz2
PokeBot-fb24fdcadd13beee78f8e89d293e31764a7c059d.zip
automation
-rw-r--r--events/channelCreate.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/events/channelCreate.js b/events/channelCreate.js
new file mode 100644
index 0000000..4319e3a
--- /dev/null
+++ b/events/channelCreate.js
@@ -0,0 +1,5 @@
+module.exports = (bot, channel) => {
+ if (channel.name.startsWith('gym-')) {
+ channel.setTopic('Current Owner: *none*');
+ }
+};