Emotebatch

From Esolang
Jump to: navigation, search

EmoteBatch Is Another Derivative Of The Batch Programming Language Created By DJgamer98 that replaces the letters and numbers with Smileys and emotes.

Current version: 1.1 (made with python 2.7)

import os
q = raw_input("Run Script: ")
s = open(q, 'r').read()
s = s.replace('D: ', 'a')
s = s.replace(':( ', 'b')
s = s.replace(':| ', 'c')
s = s.replace(':) ', 'd')
s = s.replace(':D ', 'e')
s = s.replace('XD ', 'f')
s = s.replace('._. ', 'g')
s = s.replace('o_o ', 'h')
s = s.replace('O_O ', 'i')
s = s.replace('o_O ', 'j')
s = s.replace('O_o ', 'k')
s = s.replace('^_^ ', 'l')
s = s.replace('(*L_*) ', 'm')
s = s.replace(':S ', 'n')
s = s.replace(':P ', 'o')
s = s.replace(':O ', 'p')
s = s.replace(':o ', 'q')
s = s.replace('X_X ', 'r')
s = s.replace('*_* ', 's')
s = s.replace(':\ ', 't')
s = s.replace(':I ', 'u')
s = s.replace(':c ', 'v')
s = s.replace(':C ', 'w')
s = s.replace('DX ', 'x')
s = s.replace('0_0 ', 'y')
s = s.replace('-_- ', 'z')
s = s.replace('*_O ', '0')
s = s.replace('O_* ', '1')
s = s.replace('o_* ', '2')
s = s.replace('*_o ', '3')
s = s.replace('x_x ', '4')
s = s.replace('+_+ ', '5')
s = s.replace('o_0 ', '6')
s = s.replace('0_o ', '7')
s = s.replace(':3 ', '8')
s = s.replace('83 ', '9')
s = s.replace("| ", " ")

f = open("runscript.bat", 'w')
f.write("@echo off\n" + s)
f.close()
os.system('runscript.bat')