loljoho / TriviaTime

A feature-packed limnoria trivia plugin that includes multiple channel support, multiplayer, and robust editing tools
https://joho.pw/trivia
Eclipse Public License 1.0
5 stars 2 forks source link

Text Formatting #26

Open loljoho opened 5 years ago

loljoho commented 5 years ago

Color Codes:

Screenshots

IRCCloud ![Screenshot_20190516-160911_IRCCloud](https://user-images.githubusercontent.com/8849837/57887525-a169af80-77fd-11e9-9e33-183b6867055f.jpg)
IRCCloud Dark ![bASGD8C](https://user-images.githubusercontent.com/8849837/57887526-a29adc80-77fd-11e9-90c5-ee948f285e49.jpg)
Hexchat ![0ABHsw8](https://user-images.githubusercontent.com/8849837/57887570-c52cf580-77fd-11e9-96bd-412d32ffe46d.png)
Textual ![gj40xM8](https://user-images.githubusercontent.com/8849837/57944163-1394cf80-78a4-11e9-8ebe-affb38844ff3.png)
Mutter ![ohedl4K](https://user-images.githubusercontent.com/8849837/57944342-b2b9c700-78a4-11e9-9fae-6fddb273a455.jpg)
loljoho commented 5 years ago
    def colors(self, irc, msg, arg, channel):
        """
        Display all the colors!
        """
        colorText = '\x0301Colors: \x02'
        colorText += '\x030101. Black '
        colorText += '\x030202. Blue '
        colorText += '\x030303. Green '
        colorText += '\x030404. Red '
        colorText += '\x030505. Brown '
        colorText += '\x030606. Purple '
        colorText += '\x030707. Orange '
        colorText += '\x030808. Yellow '
        colorText += '\x030909. Light Green '
        colorText += '\x031010. Cyan '
        colorText += '\x031111. Light Cyan '
        colorText += '\x031212. Light Blue '
        colorText += '\x031313. Pink '
        colorText += '\x031414. Dark Grey '
        colorText += '\x031515. Light Grey '
        colorText += '\x031616. White? '
        colorText += '\x031717. Black? '
        colorText += '\x031818. Blue? '
        colorText += '\x031919. Green? '
        self.reply(irc, msg, colorText)
    colors = wrap(colors, ['channel'])