refactor(cmd): separate commands by functionality

This commit is contained in:
vulet 2021-01-14 18:58:29 +08:00
parent cdd4429549
commit b287d961f3
19 changed files with 23 additions and 23 deletions

View file

@ -4,12 +4,12 @@ exports.runQuery = function (matrixClient, room) {
'<blockquote><b>fediverse commands<br>'
+ '+plemara [your message] : post<br>'
+ '+redact [post id] : delete post<br>'
+ '+fren [user id] : follow<br>'
+ '+unfren [user id] : unfollow<br>'
+ '+follow [user id] : follow<br>'
+ '+unfollow [user id] : unfollow<br>'
+ '+copy [post id] : repeat/repost/retweet<br>'
+ '+reply [post id] [content] : reply to post<br>'
+ '+tip [@user@fedi.url] [amount] : tip 10grans'
+ '+beg : beg for 10grans'
+ '+tip [@user@fedi.url] [amount] : tip 10grans<br>'
+ '+beg : beg for 10grans<br>'
+ '+clap [post id] : favorite<br>'
+ '+boo [post id] : unfavorite</blockquote>'
+ '<blockquote><b>channel commands<br>'

View file

@ -1,24 +1,24 @@
module.exports = {
config: require('./config.js'),
boo: require('./commands/boo.js'),
beg: require('./commands/beg.js'),
clap: require('./commands/clap.js'),
copy: require('./commands/copy.js'),
flood: require('./commands/flood.js'),
fren: require('./commands/fren.js'),
help: require('./commands/help.js'),
pin: require('./commands/pin.js'),
plemara: require('./commands/plemara.js'),
redact: require('./commands/redact.js'),
notify: require('./commands/notify.js'),
reply: require('./commands/reply.js'),
tip: require('./commands/tip.js'),
unfren: require('./commands/unfren.js'),
unpin: require('./commands/unpin.js'),
mordy: require('./commands/mordy.js'),
archive: require('./commands/archive.js'),
nitter: require('./commands/nitter.js'),
invidious: require('./commands/invidious.js'),
media: require('./commands/media.js'),
status: require('./commands/status.js')
nitter: require('./commands/nitter.js'),
beg: require('./commands/fediverse/beg.js'),
boo: require('./commands/fediverse/boo.js'),
clap: require('./commands/fediverse/clap.js'),
copy: require('./commands/fediverse/copy.js'),
flood: require('./commands/fediverse/flood.js'),
follow: require('./commands/fediverse/follow.js'),
help: require('./commands/fediverse/help.js'),
media: require('./commands/fediverse/media.js'),
mordy: require('./commands/fediverse/mordy.js'),
notify: require('./commands/fediverse/notify.js'),
pin: require('./commands/fediverse/pin.js'),
post: require('./commands/fediverse/post.js'),
redact: require('./commands/fediverse/redact.js'),
reply: require('./commands/fediverse/reply.js'),
status: require('./commands/fediverse/status.js'),
tip: require('./commands/fediverse/tip.js'),
unfollow: require('./commands/fediverse/unfollow.js'),
unpin: require('./commands/fediverse/unpin.js')
};