Kleine Fixes
This commit is contained in:
		@@ -20,7 +20,7 @@ function jk:action(msg, config)
 | 
			
		||||
  local random_pic = math.random(#jk_pics)
 | 
			
		||||
  utilities.send_typing(msg.chat.id, 'upload_photo')
 | 
			
		||||
  local file = JK_URL..jk_pics[random_pic]
 | 
			
		||||
  utilities.send_photo(msg.chat.id, file)
 | 
			
		||||
  utilities.send_photo(msg.chat.id, file, nil, msg.message_id)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
return jk
 | 
			
		||||
@@ -5,9 +5,9 @@ local bot = require('miku.bot')
 | 
			
		||||
function plugin_manager:init(config)
 | 
			
		||||
	plugin_manager.triggers = {
 | 
			
		||||
    "^/plugins$",
 | 
			
		||||
    "^/plugins? (enable) ([%w_%.%-]+) (chat) (%d+)$",
 | 
			
		||||
    "^/plugins? (enable) ([%w_%.%-]+) (chat) (-?%d+)$",
 | 
			
		||||
    "^/plugins? (enable) ([%w_%.%-]+) (chat)$",
 | 
			
		||||
	"^/plugins? (disable) ([%w_%.%-]+) (chat) (%d+)$",
 | 
			
		||||
	"^/plugins? (disable) ([%w_%.%-]+) (chat) (-?%d+)$",
 | 
			
		||||
	"^/plugins? (disable) ([%w_%.%-]+) (chat)$",
 | 
			
		||||
    "^/plugins? (enable) ([%w_%.%-]+)$",
 | 
			
		||||
    "^/plugins? (disable) ([%w_%.%-]+)$",
 | 
			
		||||
 
 | 
			
		||||
@@ -50,7 +50,7 @@ function get_tweet(response)
 | 
			
		||||
  end
 | 
			
		||||
  local header = '<b>Tweet von '..full_name..'</b> (<a href="https://twitter.com/'..user_name..'">@' ..user_name..'</a>'..verified..'):'
 | 
			
		||||
  local text = response.full_text
 | 
			
		||||
  local tweet_link = '\n<a href= "https://twitter.com/statuses/'..response.id_str..'">Tweet aufrufen</a>'
 | 
			
		||||
  local tweet_link = '\n<a href= "https://twitter.com/'..user_name..'/status/'..response.id_str..'">Tweet aufrufen</a>'
 | 
			
		||||
  
 | 
			
		||||
  -- favorites & retweets
 | 
			
		||||
  if response.retweet_count == 0 then
 | 
			
		||||
 
 | 
			
		||||
@@ -192,7 +192,7 @@ function youtube_dl:action(msg, config, matches)
 | 
			
		||||
	  utilities.edit_message(msg.chat.id, first_msg.result.message_id, '<b>Die MP3 überschreitet die Grenze von 50 MB!</b>', nil, 'HTML')
 | 
			
		||||
	  return
 | 
			
		||||
	end
 | 
			
		||||
	utilities.send_audio(msg.chat.id, file, msg.message_id)
 | 
			
		||||
	utilities.send_audio(msg.chat.id, file)
 | 
			
		||||
	return
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user