Added ~shorten, updated commandlist with fixed
This commit is contained in:
		@@ -28,7 +28,7 @@ Command and aliases | Description | Usage
 | 
				
			|||||||
`.ban` `.b` | Bans a user by ID or name with an optional message. **Requires BanMembers server permission.** | `.b "@some Guy" Your behaviour is toxic.`
 | 
					`.ban` `.b` | Bans a user by ID or name with an optional message. **Requires BanMembers server permission.** | `.b "@some Guy" Your behaviour is toxic.`
 | 
				
			||||||
`.softban` `.sb` | Bans and then unbans a user by ID or name with an optional message. **Requires KickMembers server permission.** **Requires ManageMessages server permission.** | `.sb "@some Guy" Your behaviour is toxic.`
 | 
					`.softban` `.sb` | Bans and then unbans a user by ID or name with an optional message. **Requires KickMembers server permission.** **Requires ManageMessages server permission.** | `.sb "@some Guy" Your behaviour is toxic.`
 | 
				
			||||||
`.kick` `.k` | Kicks a mentioned user. **Requires KickMembers server permission.** | `.k "@some Guy" Your behaviour is toxic.`
 | 
					`.kick` `.k` | Kicks a mentioned user. **Requires KickMembers server permission.** | `.k "@some Guy" Your behaviour is toxic.`
 | 
				
			||||||
`.setmuterole`  | Sets a name of the role which will be assigned to people who should be muted. Default is nadeko-mute. After specifying this role, restart commands which use mute as punishment. **Requires ManageRoles server permission.** | `.setmuterole Silenced`
 | 
					`.setmuterole`  | Sets a name of the role which will be assigned to people who should be muted. Default is nadeko-mute. **Requires ManageRoles server permission.** | `.setmuterole Silenced`
 | 
				
			||||||
`.mute`  | Mutes a mentioned user both from speaking and chatting. **Requires ManageRoles server permission.** **Requires MuteMembers server permission.** | `.mute @Someone`
 | 
					`.mute`  | Mutes a mentioned user both from speaking and chatting. **Requires ManageRoles server permission.** **Requires MuteMembers server permission.** | `.mute @Someone`
 | 
				
			||||||
`.unmute`  | Unmutes a mentioned user previously muted with `.mute` command. **Requires ManageRoles server permission.** **Requires MuteMembers server permission.** | `.unmute @Someone`
 | 
					`.unmute`  | Unmutes a mentioned user previously muted with `.mute` command. **Requires ManageRoles server permission.** **Requires MuteMembers server permission.** | `.unmute @Someone`
 | 
				
			||||||
`.chatmute`  | Prevents a mentioned user from chatting in text channels. **Requires ManageRoles server permission.** | `.chatmute @Someone`
 | 
					`.chatmute`  | Prevents a mentioned user from chatting in text channels. **Requires ManageRoles server permission.** | `.chatmute @Someone`
 | 
				
			||||||
@@ -48,7 +48,7 @@ Command and aliases | Description | Usage
 | 
				
			|||||||
`.setname` `.newnm` | Gives the bot a new name. **Bot owner only.** | `.newnm BotName`
 | 
					`.setname` `.newnm` | Gives the bot a new name. **Bot owner only.** | `.newnm BotName`
 | 
				
			||||||
`.setavatar` `.setav` | Sets a new avatar image for the NadekoBot. Argument is a direct link to an image. **Bot owner only.** | `.setav http://i.imgur.com/xTG3a1I.jpg`
 | 
					`.setavatar` `.setav` | Sets a new avatar image for the NadekoBot. Argument is a direct link to an image. **Bot owner only.** | `.setav http://i.imgur.com/xTG3a1I.jpg`
 | 
				
			||||||
`.setgame`  | Sets the bots game. **Bot owner only.** | `.setgame with snakes`
 | 
					`.setgame`  | Sets the bots game. **Bot owner only.** | `.setgame with snakes`
 | 
				
			||||||
`.setstream`  | Sets the bots stream. First argument is the twitch link, second argument is stream name. **Bot owner only.** | `.setstream https://www.twitch.tv/masterkwoth Developing Nakedo`
 | 
					`.setstream`  | Sets the bots stream. First argument is the twitch link, second argument is stream name. **Bot owner only.** | `.setstream TWITCHLINK Hello`
 | 
				
			||||||
`.send`  | Sends a message to someone on a different server through the bot.  Separate server and channel/user ids with `|` and prepend channel id with `c:` and user id with `u:`. **Bot owner only.** | `.send serverid|c:channelid` or `.send serverid|u:userid`
 | 
					`.send`  | Sends a message to someone on a different server through the bot.  Separate server and channel/user ids with `|` and prepend channel id with `c:` and user id with `u:`. **Bot owner only.** | `.send serverid|c:channelid` or `.send serverid|u:userid`
 | 
				
			||||||
`.announce`  | Sends a message to all servers' general channel bot is connected to. **Bot owner only.** | `.announce Useless spam`
 | 
					`.announce`  | Sends a message to all servers' general channel bot is connected to. **Bot owner only.** | `.announce Useless spam`
 | 
				
			||||||
`.savechat`  | Saves a number of messages to a text file and sends it to you. **Bot owner only.** | `.savechat 150`
 | 
					`.savechat`  | Saves a number of messages to a text file and sends it to you. **Bot owner only.** | `.savechat 150`
 | 
				
			||||||
@@ -278,6 +278,7 @@ Command and aliases | Description | Usage
 | 
				
			|||||||
`~img` `~i` | Pulls the first image found using a search parameter. Use ~ir for different results.  | `~i cute kitten`
 | 
					`~img` `~i` | Pulls the first image found using a search parameter. Use ~ir for different results.  | `~i cute kitten`
 | 
				
			||||||
`~ir`  | Pulls a random image using a search parameter.  | `~ir cute kitten`
 | 
					`~ir`  | Pulls a random image using a search parameter.  | `~ir cute kitten`
 | 
				
			||||||
`~lmgtfy`  | Google something for an idiot.  | `~lmgtfy query`
 | 
					`~lmgtfy`  | Google something for an idiot.  | `~lmgtfy query`
 | 
				
			||||||
 | 
					`~shorten`  | Attempts to shorten an URL, if it fails, returns the input URL.  | `~shorten https://google.com`
 | 
				
			||||||
`~google` `~g` | Get a google search link for some terms.  | `~google query`
 | 
					`~google` `~g` | Get a google search link for some terms.  | `~google query`
 | 
				
			||||||
`~hearthstone` `~hs` | Searches for a Hearthstone card and shows its image. Takes a while to complete.  | `~hs Ysera`
 | 
					`~hearthstone` `~hs` | Searches for a Hearthstone card and shows its image. Takes a while to complete.  | `~hs Ysera`
 | 
				
			||||||
`~urbandict` `~ud` | Searches Urban Dictionary for a word.  | `~ud Pineapple`
 | 
					`~urbandict` `~ud` | Searches Urban Dictionary for a word.  | `~ud Pineapple`
 | 
				
			||||||
@@ -347,6 +348,6 @@ Command and aliases | Description | Usage
 | 
				
			|||||||
`.deletequote` `.delq` | Deletes a random quote with the specified keyword. You have to either be server Administrator or the creator of the quote to delete it.  | `.delq abc`
 | 
					`.deletequote` `.delq` | Deletes a random quote with the specified keyword. You have to either be server Administrator or the creator of the quote to delete it.  | `.delq abc`
 | 
				
			||||||
`.delallq` `.daq` | Deletes all quotes on a specified keyword. **Requires Administrator server permission.** | `.delallq kek`
 | 
					`.delallq` `.daq` | Deletes all quotes on a specified keyword. **Requires Administrator server permission.** | `.delallq kek`
 | 
				
			||||||
`.remind`  | Sends a message to you or a channel after certain amount of time. First argument is me/here/'channelname'. Second argument is time in a descending order (mo>w>d>h>m) example: 1w5d3h10m. Third argument is a (multiword)message.  | `.remind me 1d5h Do something` or `.remind #general Start now!`
 | 
					`.remind`  | Sends a message to you or a channel after certain amount of time. First argument is me/here/'channelname'. Second argument is time in a descending order (mo>w>d>h>m) example: 1w5d3h10m. Third argument is a (multiword)message.  | `.remind me 1d5h Do something` or `.remind #general Start now!`
 | 
				
			||||||
`.remindtemplate`  | Sets message for when the remind is triggered.  Available placeholders are %user% - user who ran the command, %message% - Message specified in the remind, %target% - target channel of the remind. **Bot owner only.** | `.remindtemplate %user%, you gotta do %message%!`
 | 
					`.remindtemplate`  | Sets message for when the remind is triggered.  Available placeholders are %user% - user who ran the command, %message% - Message specified in the remind, %target% - target channel of the remind. **Bot owner only.** | `.remindtemplate %user%, do %message%!`
 | 
				
			||||||
`.convertlist`  | List of the convertible dimensions and currencies.  | `.convertlist`
 | 
					`.convertlist`  | List of the convertible dimensions and currencies.  | `.convertlist`
 | 
				
			||||||
`.convert`  | Convert quantities. Use `.convertlist` to see supported dimensions and currencies.  | `.convert m km 1000`
 | 
					`.convert`  | Convert quantities. Use `.convertlist` to see supported dimensions and currencies.  | `.convert m km 1000`
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -184,6 +184,16 @@ $@"🌍 **Weather for** 【{obj["target"]}】
 | 
				
			|||||||
                           .ConfigureAwait(false);
 | 
					                           .ConfigureAwait(false);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        [NadekoCommand, Usage, Description, Aliases]
 | 
				
			||||||
 | 
					        [RequireContext(ContextType.Guild)]
 | 
				
			||||||
 | 
					        public async Task Shorten(IUserMessage msg, [Remainder] string arg)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            if (string.IsNullOrWhiteSpace(arg))
 | 
				
			||||||
 | 
					                return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            await msg.Channel.SendMessageAsync(await NadekoBot.Google.ShortenUrl(arg).ConfigureAwait(false));
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        [NadekoCommand, Usage, Description, Aliases]
 | 
					        [NadekoCommand, Usage, Description, Aliases]
 | 
				
			||||||
        [RequireContext(ContextType.Guild)]
 | 
					        [RequireContext(ContextType.Guild)]
 | 
				
			||||||
        public async Task Google(IUserMessage umsg, [Remainder] string terms = null)
 | 
					        public async Task Google(IUserMessage umsg, [Remainder] string terms = null)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -790,7 +790,7 @@
 | 
				
			|||||||
    <value>Sets message for when the remind is triggered.  Available placeholders are %user% - user who ran the command, %message% - Message specified in the remind, %target% - target channel of the remind.</value>
 | 
					    <value>Sets message for when the remind is triggered.  Available placeholders are %user% - user who ran the command, %message% - Message specified in the remind, %target% - target channel of the remind.</value>
 | 
				
			||||||
  </data>
 | 
					  </data>
 | 
				
			||||||
  <data name="remindtemplate_usage" xml:space="preserve">
 | 
					  <data name="remindtemplate_usage" xml:space="preserve">
 | 
				
			||||||
    <value>`{0}remindtemplate %user%, you gotta do %message%!`</value>
 | 
					    <value>`{0}remindtemplate %user%, do %message%!`</value>
 | 
				
			||||||
  </data>
 | 
					  </data>
 | 
				
			||||||
  <data name="serverinfo_cmd" xml:space="preserve">
 | 
					  <data name="serverinfo_cmd" xml:space="preserve">
 | 
				
			||||||
    <value>serverinfo sinfo</value>
 | 
					    <value>serverinfo sinfo</value>
 | 
				
			||||||
@@ -2491,7 +2491,7 @@
 | 
				
			|||||||
    <value>Sets the bots stream. First argument is the twitch link, second argument is stream name.</value>
 | 
					    <value>Sets the bots stream. First argument is the twitch link, second argument is stream name.</value>
 | 
				
			||||||
  </data>
 | 
					  </data>
 | 
				
			||||||
  <data name="setstream_usage" xml:space="preserve">
 | 
					  <data name="setstream_usage" xml:space="preserve">
 | 
				
			||||||
    <value>`{0}setstream https://www.twitch.tv/masterkwoth Developing Nakedo`</value>
 | 
					    <value>`{0}setstream TWITCHLINK Hello`</value>
 | 
				
			||||||
  </data>
 | 
					  </data>
 | 
				
			||||||
  <data name="chatunmute_cmd" xml:space="preserve">
 | 
					  <data name="chatunmute_cmd" xml:space="preserve">
 | 
				
			||||||
    <value>chatunmute</value>
 | 
					    <value>chatunmute</value>
 | 
				
			||||||
@@ -2628,4 +2628,13 @@
 | 
				
			|||||||
  <data name="cleverbot_usage" xml:space="preserve">
 | 
					  <data name="cleverbot_usage" xml:space="preserve">
 | 
				
			||||||
    <value>`{0}cleverbot`</value>
 | 
					    <value>`{0}cleverbot`</value>
 | 
				
			||||||
  </data>
 | 
					  </data>
 | 
				
			||||||
 | 
					  <data name="shorten_cmd" xml:space="preserve">
 | 
				
			||||||
 | 
					    <value>shorten</value>
 | 
				
			||||||
 | 
					  </data>
 | 
				
			||||||
 | 
					  <data name="shorten_desc" xml:space="preserve">
 | 
				
			||||||
 | 
					    <value>Attempts to shorten an URL, if it fails, returns the input URL.</value>
 | 
				
			||||||
 | 
					  </data>
 | 
				
			||||||
 | 
					  <data name="shorten_usage" xml:space="preserve">
 | 
				
			||||||
 | 
					    <value>`{0}shorten https://google.com`</value>
 | 
				
			||||||
 | 
					  </data>
 | 
				
			||||||
</root>
 | 
					</root>
 | 
				
			||||||
		Reference in New Issue
	
	Block a user