Ein paar Texte angepasst
This commit is contained in:
parent
52426b14b7
commit
0a008d206b
@ -9,9 +9,6 @@ return {
|
||||
-- The channel, group, or user to send error reports to.
|
||||
-- If this is not set, errors will be printed to the console.
|
||||
log_chat = nil,
|
||||
-- The port used to communicate with tg for administration.lua.
|
||||
-- If you change this, make sure you also modify launch-tg.sh.
|
||||
cli_port = 4567,
|
||||
-- The block of text returned by /start.
|
||||
about_text = [[
|
||||
Willkommen bei Mikubot v2!
|
||||
@ -47,15 +44,15 @@ Sende /hilfe, um zu starten
|
||||
},
|
||||
|
||||
errors = { -- Generic error messages used in various plugins.
|
||||
generic = 'An unexpected error occurred.',
|
||||
generic = 'Ein Fehler ist aufgetreten.',
|
||||
connection = 'Verbindungsfehler.',
|
||||
quotaexceeded = 'API-Quota aufgebraucht.',
|
||||
results = 'Keine Ergebnisse gefunden.',
|
||||
sudo = 'Du bist kein Superuser. Dieser Vorfall wird gemeldet!',
|
||||
sudo = 'Das darf nur mein [Meister](http://telegram.me/Akamaru)!',
|
||||
argument = 'Invalides Argument.',
|
||||
syntax = 'Invalide Syntax.',
|
||||
chatter_connection = 'Ich möchte gerade nicht reden',
|
||||
chatter_response = 'Ich weiß nicht, was ich darauf antworten soll.'
|
||||
syntax = 'Invalider Syntax.',
|
||||
chatter_connection = 'Ich möchte jetzt nicht reden...',
|
||||
chatter_response = 'Ich weiß nicht, was ich dazu sagen soll...'
|
||||
},
|
||||
|
||||
remind = {
|
||||
@ -68,8 +65,8 @@ Sende /hilfe, um zu starten
|
||||
|
||||
chatter = {
|
||||
cleverbot_api = 'https://brawlbot.tk/apis/chatter-bot-api/cleverbot.php?text=',
|
||||
connection = 'I don\'t feel like talking right now.',
|
||||
response = 'I don\'t know what to say to that.'
|
||||
connection = 'Ich möchte jetzt nicht reden...',
|
||||
response = 'Ich weiß nicht, was ich dazu sagen soll...'
|
||||
}
|
||||
|
||||
}
|
@ -6,7 +6,15 @@ about.command = 'about'
|
||||
about.doc = '`Sendet Informationen über den Bot.`'
|
||||
|
||||
function about:init(config)
|
||||
about.text = config.about_text .. '\n[Mikudayobot](https://github.com/Akamaru/Mikubot-V2) v'..bot.version..' von @Akamaru, basierend auf [otouto](https://github.com/topkecleon/otouto) von topkecleon.'
|
||||
about.text = config.about_text..[[
|
||||
|
||||
*Mikubot v]]..bot.version..[[* von *Akamaru*, basierend auf [otouto](https://github.com/topkecleon/otouto) von *topkecleon*.
|
||||
• [Code auf GitHub](https://github.com/Akamaru/Mikubot-V2)
|
||||
• [Mikubot Homepage](https://ponywave.de/projekte/mikubot-v2/)
|
||||
• [Autor Homepage](http://akamaru.de/)
|
||||
• [Autor in Telegram](https://telegram.me/Akamaru)
|
||||
• [Mikubot Telegram Kanal](https://telegram.me/Mikubot_Updates)]]
|
||||
|
||||
about.triggers = {
|
||||
'^/about$',
|
||||
'^/start$'
|
||||
|
@ -39,7 +39,7 @@ function preview:inline_callback(inline_query, config, matches)
|
||||
only_name = preview_url:match('^%w+://([^/]+)') -- we only need the domain
|
||||
end
|
||||
|
||||
local message_text = '<b>'..title..'</b>'..description_in_text..'\n— '..only_name
|
||||
local message_text = '<b>'..title..'</b>'..description_in_text..'\n- '..only_name
|
||||
|
||||
local results = '[{"type":"article","id":"77","title":"'..title..'","description":"'..description..'","url":"'..preview_url..'","thumb_url":"https://anditest.perseus.uberspace.de/inlineQuerys/generic/internet.jpg","thumb_width":150,"thumb_height":150,"hide_url":true,"reply_markup":{"inline_keyboard":[[{"text":"Webseite aufrufen","url":"'..preview_url..'"}]]},"input_message_content":{"message_text":"'..message_text..'","parse_mode":"HTML","disable_web_page_preview":true}}]'
|
||||
utilities.answer_inline_query(inline_query, results, 3600, true)
|
||||
|
Reference in New Issue
Block a user