Untitled
unknown
python
4 years ago
2.4 kB
6
Indexable
from random import choice valow = ['ga males', 'bentar', 'ga mau lagi bau', 'mau tidur', 'mau makan dulu', 'maleman aja', 'besok aja', 'ga, lagi jelek internetnya'] async def sorter(ctx, arg1, arg2, isi, client, args): if arg1 == 'bot': await bot(ctx, arg1, arg2, client) elif arg1 == 'mau': await mau(ctx, arg1, arg2, isi, client) elif arg1 == 'valo': await valo(ctx, isi, client) elif arg1 == 'pilih': await pilih(ctx, args, client) async def valo(ctx, isi, client): if isi == 'valo ga': await ctx.send(choice(valow)) async def pilih(ctx, args, client): data = list(args) data.remove('pilih') if 'ato' in data: data.remove('ato') if 'atau' in data: data.remove('atau') if 'apa' in data: data.remove('atau') await ctx.send(choice(data)) async def bot(ctx, arg1, arg2, client): if arg1 == 'bot' and arg1 == arg2: await ctx.send('emang bot, kenapa') repl = await client.wait_for('message', timeout=15.0) if repl.content == 'ga': await ctx.send('ok') elif repl.content == 'gapapa': await ctx.send('ok') elif repl.content == 'ga papa': await ctx.send('ok') elif repl.content == 'ga apa': await ctx.send('ok') elif repl.content == 'ga apa apa': await ctx.send('ok') elif arg1 == 'bot' and arg2 == 'tolol': await ctx.send('bangsat kau') async def mau(ctx, arg1, arg2, isi, client): if isi == 'mau maen valo ga': await ctx.send(choice(valow)) elif isi == 'mau main valo ga': await ctx.send(choice(valow)) elif isi == 'mau valo ga': await ctx.send(choice(valow)) async def panggil(ctx, client): init = False if init == False: await ctx.send('apa manggil manggil') init = True halo_count = 0 while halo_count < 2: repl = await client.wait_for('message', timeout=15.0) if repl.content == 'halo': await ctx.send('halo') halo_count += 1 if halo_count > 1: repl = await client.wait_for('message', timeout=15.0) if repl.content == 'halo': await ctx.send('apa sih halo halo') halo_count += 1
Editor is loading...