Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
import discord
from discord.ext.commands import Bot
from discord.ext import commands
import asyncio
import time
import random
from discord import Game


Client = discord.client
client = commands.Bot(command_prefix = '!')
Clientdiscord = discord.Client()


@client.event
async def on_member_join(member):
    print('Recognised that a member called ' + member.name + ' joined')
    await client.send_message(member, ':grinning: Hello ' + member.name + ' and welcome to my offical discord server! :grinning:')
    print('Sent message to ' + member.name)
    await client.send_message(member, ":grinning: Type in '!help' on our discord server for a list of commands! :grinning:")
    print('Sent message to ' + member.name)
async def on_ready():
    await client.change_presence(game=Game(name='      '))
    print('Ready, Freddy') 


@client.event
async def on_message(message):
    if message.content.startswith('!rolldice'):
        randomlist = [':game_die: You rolled a 1! :game_die:',':game_die: You rolled a 2! :game_die:',':game_die: You rolled a 3! :game_die:', ':game_die: You rolled a 4! :game_die:',':game_die: You rolled a 5! :game_die:',':game_die: You rolled a 6! :game_die:']
        await client.send_message(message.channel,(random.choice(randomlist)))
    if message.content.startswith('!flipcoin'):
        randomlist = ['You flipped Tails!','You flipped heads!']
        await client.send_message(message.channel,(random.choice(randomlist)))
    if message.content == '!bestyoutuber':
        await client.send_message(message.channel,'ME!!')
    if message.content == '!face':
        em = discord.Embed(description='no')
        em.set_image(url='http://www.clker.com/cliparts/2/6/7/1/1332090722958766878epic%20face-hi.png')
        await client.send_message(message.channel, embed=em)
    if message.content == '!hello':
        await client.send_message(message.channel,'hi')
    if message.content == '!help':
        await client.send_message(message.channel,"Commands: '!help', '!hello', '!rolldice', '!flipcoin', '!bestyoutuber', '!face', '!pig' and '!subscribeto...'")
    if message.content == '!subscribeto...':
        await client.send_message(message.channel,'PEWDIEPIEEEE!!!! (and me)')
    if message.content == '!easteregg':
        await client.send_message(message.channel,'no')
    if message.content == '!pig':
        await client.send_message(message.channel,'oink')
    if message.content == '!eastereggpls':
        em = discord.Embed(description='ok')
        em.set_image(url='https://www.topwristbands.co.uk/blog/wp-content/uploads/2016/03/5blog-easter-eggs.jpg')
        await client.send_message(message.channel, embed=em)
    if ('article 13 is good') in message.content:
       await client.delete_message(message)
    if ('subscribe to t-series') in message.content:
       await client.delete_message(message)
    if ('just one easter please') in message.content:
       await client.delete_message(message)
    if ('fuck') in message.content:
       await client.delete_message(message)
    if ('bitch') in message.content:
       await client.delete_message(message)
    if ('shit') in message.content:
       await client.delete_message(message)
    if ('i like t series') in message.content:
       await client.delete_message(message)
    if ('son of a bitch') in message.content:
       await client.delete_message(message)
    if ('ass') in message.content:
       await client.delete_message(message)
    if ('Isreal and Palestine Image Lol') in message.content:
       await client.delete_message(message)
    if ('FOORTNIITEE BAATTLEE ROOYAALEE!!!') in message.content:
       await client.delete_message(message)
    if ('ali-a is good') in message.content:
       await client.delete_message(message)
    if ("i'm Jake Paul") in message.content:
       await client.delete_message(message)
    if ('Drew Durnil') in message.content:
       await client.delete_message(message)
    if ('gay') in message.content:
       await client.delete_message(message)
    if ('lesbian') in message.content:
       await client.delete_message(message)
    if ('fuck off') in message.content:
       await client.delete_message(message)
    if ('dick') in message.content:
       await client.delete_message(message)
    if ('Big chungus') in message.content:
       await client.delete_message(message)
    if ('big chungus') in message.content:
       await client.delete_message(message)
    if ('BIG CHUNGUS') in message.content:
       await client.delete_message(message)
    if ('Big Chungus') in message.content:
       await client.delete_message(message)
    if ('cunt') in message.content:
       await client.delete_message(message)
    if ('penis') in message.content:
       await client.delete_message(message)
    if ('vagina') in message.content:
       await client.delete_message(message)
    if ('cock') in message.content:
       await client.delete_message(message)