No description
Find a file
2023-05-02 18:11:37 +05:00
.vscode second version of script 2023-05-02 14:34:36 +05:00
LICENCE Create LICENCE 2023-05-02 15:12:26 +05:00
main.py removing stackoverflow example string 2023-05-02 18:11:37 +05:00
README.md fixing readme 2023-05-02 14:37:18 +05:00
requirements.txt second version of script 2023-05-02 14:34:36 +05:00
test.ans second version of script 2023-05-02 14:34:36 +05:00
test.txt second version of script 2023-05-02 14:34:36 +05:00

discord ansi

Usage


$ python ansi_markdown.py input.dai output.ans

Syntax


(0,5)[1,3,4,9]{

Text here

}

(5,0)[1]{

Another text here

}

(2,3)[9]{

Another Another text here

}

explanation

The syntax is quite simple, there are two digits from 0 to 8 in parentheses, the first digit is foreground, the second background. Numbers stand for colors.

  • 0 is black

  • 1 is red

  • 2 is green

  • 3 is yellow

  • 4 is blue

  • 5 is magenta

  • 6 is cyan

  • 7 is white

  • 8 is default color

Decorators are in square brackets. Their position doesn't matter. They can only be 1, 3, 4, 9

  • 1 bold decorator

  • 3 italic decorator

  • 4 underline decorator

  • 9 strikethrough decorator (Doesnt work in discord)