diff --git a/src/main/kotlin/net/thauvin/erik/mobibot/modules/Mastodon.kt b/src/main/kotlin/net/thauvin/erik/mobibot/modules/Mastodon.kt index ae805cd..9a4e914 100644 --- a/src/main/kotlin/net/thauvin/erik/mobibot/modules/Mastodon.kt +++ b/src/main/kotlin/net/thauvin/erik/mobibot/modules/Mastodon.kt @@ -91,6 +91,7 @@ class Mastodon : SocialModule() { const val INSTANCE_PROP = "mastodon-instance" private const val MASTODON_CMD = "mastodon" + private const val TOOT_CMD = "toot" /** * Post on Mastodon. @@ -140,8 +141,9 @@ class Mastodon : SocialModule() { init { commands.add(MASTODON_CMD) - help.add("To post to Mastodon:") - help.add(Utils.helpFormat("%c $MASTODON_CMD ")) + commands.add(TOOT_CMD) + help.add("To toot on Mastodon:") + help.add(Utils.helpFormat("%c $TOOT_CMD ")) properties[AUTO_POST_PROP] = "false" initProperties(ACCESS_TOKEN_PROP, HANDLE_PROP, INSTANCE_PROP) } diff --git a/src/main/kotlin/net/thauvin/erik/mobibot/modules/Twitter.kt b/src/main/kotlin/net/thauvin/erik/mobibot/modules/Twitter.kt index 28f9cde..4fc3770 100644 --- a/src/main/kotlin/net/thauvin/erik/mobibot/modules/Twitter.kt +++ b/src/main/kotlin/net/thauvin/erik/mobibot/modules/Twitter.kt @@ -86,6 +86,7 @@ class Twitter : SocialModule() { // Twitter command private const val TWITTER_CMD = "twitter" + private const val TWEET_CMD = "tweet" /** * Post on Twitter. @@ -124,8 +125,9 @@ class Twitter : SocialModule() { init { commands.add(TWITTER_CMD) - help.add("To post to Twitter:") - help.add(helpFormat("%c $TWITTER_CMD ")) + commands.add(TWEET_CMD) + help.add("To tweet on Twitter:") + help.add(helpFormat("%c $TWEET_CMD ")) properties[AUTO_POST_PROP] = "false" initProperties(CONSUMER_KEY_PROP, CONSUMER_SECRET_PROP, HANDLE_PROP, TOKEN_PROP, TOKEN_SECRET_PROP) } diff --git a/website/index.html b/website/index.html index 721e840..2d134f2 100644 --- a/website/index.html +++ b/website/index.html @@ -48,6 +48,7 @@
  • PircBotX
  • Rome
  • Twitter4J
  • +
  • UrlEncoder
  • mobibot was written by Erik C. Thauvin as a replacement for the channel's @@ -122,7 +123,10 @@

    mobibot: paper
    mobibot: rock
    -
  • Posting to Twitter and Mastodon
  • +
  • Posting to Twitter and Mastodon +
    mobibot: tweet hello twitter
    +
    mobibot: toot hello mastodon
    +
  • Some of the internal features include RSS feed backlogs, rolling logs, debugging toggle and much more.