sm00th / bitlbee-discord

Bitlbee plugin for Discord (http://discordapp.com)
GNU General Public License v2.0
290 stars 27 forks source link

Running commands on/pre-processing messages #50

Open zertap opened 8 years ago

zertap commented 8 years ago

19:42 <nick> https://cdn.discordapp.com/attachments/xxxxxxxxxxxxxxxxxx/233267567148531722/xnAuW6nD1NUcoqhUKE8hcfKIAnzkqJlsGLucOPEvmplWYcGthYM8p90K_b8RhZ1ccs7wL6u7nCfUTh08Fkjip9QYmkD7eAhKq9zeB6YrwQaOY0JdAt6So0xGV7UuLRKIJEA8-i_i7QEDFcZmql-a30P9m2yVBhTIXpehg0HSs5GyohTGQtw8mrd8GlNOtgJ- 19:42 <nick> ZtCUk6p9uQ9hreYUO04upddELDKVIaR8tVeciZ3P34rDVR6xR1tDudcg_cDaxlYYATcJXqI8SYf1jDIzHr_V4m_kCDY8ntGdrbirg_u1RUxHzb5Li9FL4Wt2j7zqPpizBBt1Avjehjd8byeBvIGtDDTT2sMqRaAEUqFe_iiYgbsOG3vAj-ddPodbMtsNu1Y1CFkZmsTf5c89Ij1p0TSBku2gEVK55HGmhIcEQM_3cP0UemaN4i6kRfWKI9kEgQt7z-zk_dQJnVtXyo-WO37eXpgsxRPhb4Z38J6sEtBUOlDsVz63RqLY5QKy41afM1PrE6-kQ1biN1FS-XlzJlKR6zbV97nC_zK4g4Vt8gPcBMudPZpBU_dzIpXUExh7Az07xfQqR5uWr_- 19:42 <nick> NbXwLPfgAlM9jXF5IhFoh5ZJUyfX1V8wJxc-fw359-h638-no.png

Would it be possible to add an option to shorten urls with some service before displaying them, in case of really long links(multi-line)? Opening these is a hassle.

Possibly scripting support to pre-process messages before giving them to bitlbee (which supposedly splits them). Having an option to run a shell command on each message would be very nice.