osteenbergen / slackify

Slack bot to play/queue Spotify
13 stars 1 forks source link

Unicode support #10

Closed osteenbergen closed 8 years ago

osteenbergen commented 8 years ago
slackifyBOT [9:45 AM] 
@angelo: Queue 13: Crossfaith - Jägerbomb (3:25)
angelo [10:14 AM] 
@slackify: q
slackifyBOT [10:14 AM] 
[queue_song] I have problem when handling "q"
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/slackbot/dispatcher.py", line 33, in dispatch_msg
    func(Message(self._client, msg), *args)
  File "/home/osteenbergen/Documents/slackify/plugins/queue.py", line 33, in queue_song
    message.reply('Upcoming:\n%s' % "\n".join(map(str, result)))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 19: ordinal not in range(128)