Maselkov / Maselkov-Cogs

Collection of cogs for Red-Discordbot
MIT License
2 stars 3 forks source link

Added language parameter #29

Closed n1tr0-5urf3r closed 7 years ago

n1tr0-5urf3r commented 7 years ago

Added command !langset to save the parameter (en, de, fr, es, ko, zh) for each server in language.json Added method getlanguage to get language for each server from json Added language parameter to api call in !guild treasury, get_stat_name, get_title and get_item_name (used in !character gear and info) langset is not available in direct messages (no server available) if no language is set, it defaults to english

Maselkov commented 7 years ago

Merge into production without testing, I live dangerously. Can't really test it at the moment.

n1tr0-5urf3r commented 7 years ago

I hope I didn't mess up everything^^ but it worked for me Can you test it later?

----- Originale Nachricht ----- Von: Maselkov notifications@github.com Gesendet: 03/04/2017 - 20:35 An: Maselkov/Maselkov-Cogs Maselkov-Cogs@noreply.github.com Betreff: Re: [Maselkov/Maselkov-Cogs] Added language parameter (#29)

Merge into production without testing, I live dangerously. Can't really test it at the moment.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/Maselkov/Maselkov-Cogs/pull/29#issuecomment-291233197

Maselkov commented 7 years ago

Character gear was throwing out json decode errors the first time I tried, but then for some reason it stopped and worked just fine with different languages. Weird.

n1tr0-5urf3r commented 7 years ago

I had the same issue, also the guild treasury command threw an „Unknown API Error“ and after some more tries everything worked as expected without changing anything

Von: Maselkov [mailto:notifications@github.com] Gesendet: Montag, 3. April 2017 22:45 An: Maselkov/Maselkov-Cogs Maselkov-Cogs@noreply.github.com Cc: n1tr0-5urf3r fabi@ihlecloud.de; Author author@noreply.github.com Betreff: Re: [Maselkov/Maselkov-Cogs] Added language parameter (#29)

Character gear was throwing out json decode errors the first time I tried, but then for some reason it stopped and worked just fine with different languages. Weird.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Maselkov/Maselkov-Cogs/pull/29#issuecomment-291268284 , or mute the thread https://github.com/notifications/unsubscribe-auth/AJ64xrAIff-RdyTjq8WaH_zVm729xoZTks5rsVpLgaJpZM4MxNsY . https://github.com/notifications/beacon/AJ64xojl-6g4Aibt6Tn489sddGYBZ_G7ks5rsVpLgaJpZM4MxNsY.gif