Jump to...
redirecting...

Log for SITCON BOT Testpool

test @mmis1000_test_bot http://google.com/ *123* _test_ fdsfsdf
gdf
gfdgdfgs ```fdsdsdg ```dsfgggggggggggfd
gfdgdfgs fdsdsdg
你在幹嘛
測試bot entity
fdsdfg fdgfdg
我在試圖寫出從 telegram 得 text-entity 生出 html的程式
結果差不多是這樣 class TelegramText @toHTML: (text, entities)-> chars = text.split '' # remove special entities chars = chars.map (i)-> switch i when '&' then '&amp;' when '<' then '&lt;' when '>' then '&gt;' when '\n' then '<br/>' else i offset = 0 for entity in entities switch entity.type when 'url' realOffset = offset + entity.offset url = chars.slice realOffset, realOffset + entity.length .join '' url = url.match /&amp;|&lt;|&gt;|.|\r|\n/g .map (i)-> switch i when '&amp;' then '&' when '&lt;' then '<' when '&gt;' then '>' else i .join '' chars.splice realOffset, 0, "<a href=\"#{url}\">" chars.splice realOffset + entity.length + 1, 0, '</a>' offset += 2 when 'mention' realOffset = offset + entity.offset name = chars.slice realOffset + 1, realOffset + entity.length .join '' url = "https://telegram.me/#{encodeURIComponent name}" chars.splice realOffset, 0, " <a href=\"#{url}\" data-tg-type=\"mention\" >" chars.splice realOffset + entity.length + 1, 0, '</a>' offset += 2 when 'code' realOffset = offset + entity.offset chars.splice realOffset, 0, '<code>' chars.splice realOffset + entity.length + 1, 0, '</code>' offset += 2 when 'pre' realOffset = offset + entity.offset for i in [realOffset..realOffset + entity.length - 1] if chars[i] is '<br/>' chars[i] = '\n' chars.splice realOffset, 0, '<pre>' chars.splice realOffset + entity.length + 1, 0, '</pre>' offset += 2 when 'text_mention' realOffset = offset + entity.offset name = chars.slice realOffset, realOffset + entity.length .join '' url = encodeURIComponent "https://telegram.me/#{name}" chars.splice realOffset, 0, " <a href=\"#\" data-tg-type=\"text_mention\" data-tg-id=\"#{entity.user.id}\" data-tg-first_name=\"#{entity.user.first_name}\" data-tg-last_name=\"#{entity.user.last_name}\" >" chars.splice realOffset + entity.length + 1, 0, '</a>' offset += 2 chars.join ''
比想像中短
fsdfsd
<script>alert(1);
<scirpt>alert(1)
/reply_html@ysitdbot test <a href="http://google.com/">測試</a> http://google.com/ <code>test</code> <pre> 123 </pre> @mmis1000_bot /gogogo exmaple@example.com
test 測試 http://google.com/ test 123 @mmis1000_bot /gogogo exmaple@example.com
/tests
@mmis1000_bot
未知
未知
Dao Hung 測試
test
123
/bind@ysitdbot list
/wow
/wow
/bind@ysitdbot
/bind@ysitdbot add /how_do_you_turn_this_on reply Warning: system is korued
binded ^/how_do_you_turn_this_on to reply Warning: system is korued
/how_do_you_turn_this_on@ysitdbot
Warning: system is korued
/how_do_you_turn_this_oniichan
Warning: system is korued
/how_do_you_turn_this_on@ysitdbot
Warning: system is korued
/how_do_you_turn_this_on@ysitdbot
/how_do_you_turn_this_on@ysitdbot
/how_do_you_turn_this_on@ysitdbot
Warning: system is korued
/how_do_you_turn_this_on@ysitdbot
/how_do_you_turn_this_on@ysitdbot
Warning: system is korued
Warning: system is korued
Warning: system is korued
Warning: system is korued
.-.
/sudo@ysitdbot bind add ^/tag(?:@[a-zA-Z0-9]+)?\s(@[a-zA-Z0-9]+)$ reply $1\n$1\n$1
binded ^/tag(?:@[a-zA-Z0-9]+)?\s(@[a-zA-Z0-9]+)$ to reply $1\n$1\n$1
/tag @koru1130
@koru1130 @koru1130 @koru1130
好無意義...
www
/sudo@ysitdbot bind add ^/pia(?:@[a-zA-Z0-9]+)?\s(.+)$ upd $1
binded ^/pia(?:@[a-zA-Z0-9]+)?\s(.+)$ to upd $1
/pia @mmis1000_test_bot
ʇoq¯ʇsǝʇ¯0001sᴉɯɯ@
/pia test
ʇsǝʇ
/pia tttt
ʇʇʇʇ