<commit_before>﻿from discord.ext import commands
import os
import random
import discord

class doyouloveme:
    """Do the Bot loves You?"""

    def __init__(self, bot):
        self.bot = bot
        self.love = ["Yes, I do! :heart: http://i.imgur.com/cRfX87T.gif",
                     "Die! http://i.imgur.com/QzfBdVe.gif",
                     "I-It's not that I like you or anything... http://i.imgur.com/b0RWwM2.gif",
                     "If you bow down and kiss my feet, {} http://i.imgur.com/gD2w8oV.gif",
                     "Nope. http://i.imgur.com/yqKQTef.gif",
                     "That's funny, {} http://i.imgur.com/ZnmFUhR.gif",
                     "You are scaring me http://i.imgur.com/fEurqrT.gif",
                     "I don't care what you feel http://i.imgur.com/VhZZUH0.gif",
                     "We will have much fun http://i.imgur.com/QY5zTs0.gif",
                     "What is love? http://i.imgur.com/GCLzjTO.gif",
                     "I will crush your nuts http://i.imgur.com/zCRMpX7.gif",
                     "Yes... I love you ~ http://i.imgur.com/KKjHhUV.gif",
                     "B-Baka! Stop asking this! http://i.imgur.com/zde7L1w.gif"]
        self.loveothers = ["Yes, {} loves you :heart:",
                           "No, {} doesn't loves you :broken_heart:"]
        self.loveanismash = ["Of course I love you because you are my BF, {} :heart:"]

    @commands.command(pass_context=True)
    async def doyouloveme(self, ctx, *, user : discord.Member=None):
        """Random Love Answer"""
        if ctx.message.author.id == "1<PASSWORD>":
            await self.bot.say("Of course I love you because you are my BF, {} :heart:".format(user.mention))
        elif user == None:
            user = ctx.message.author
            await self.bot.say(random.choice(self.love).format(user.mention))
        else: 
            await self.bot.say(random.choice(self.loveothers).format(user.mention))
        

def setup(bot):
    bot.add_cog(doyouloveme(bot))<commit_msg>Update doyouloveme.py<commit_after>﻿from discord.ext import commands
import os
import random
import discord

class doyouloveme:
    """Do the Bot loves You?"""

    def __init__(self, bot):
        self.bot = bot
        self.love = ["Yes, I do! :heart: http://i.imgur.com/cRfX87T.gif",
                     "Die! http://i.imgur.com/QzfBdVe.gif",
                     "I-It's not that I like you or anything... http://i.imgur.com/b0RWwM2.gif",
                     "If you bow down and kiss my feet, {} http://i.imgur.com/gD2w8oV.gif",
                     "Nope. http://i.imgur.com/yqKQTef.gif",
                     "That's funny, {} http://i.imgur.com/ZnmFUhR.gif",
                     "You are scaring me http://i.imgur.com/fEurqrT.gif",
                     "I don't care what you feel http://i.imgur.com/VhZZUH0.gif",
                     "We will have much fun http://i.imgur.com/QY5zTs0.gif",
                     "What is love? http://i.imgur.com/GCLzjTO.gif",
                     "I will crush your nuts http://i.imgur.com/zCRMpX7.gif",
                     "Yes... I love you ~ http://i.imgur.com/KKjHhUV.gif",
                     "B-Baka! Stop asking this! http://i.imgur.com/zde7L1w.gif"]
        self.loveothers = ["Yes, {} loves you :heart:",
                           "No, {} doesn't loves you :broken_heart:"]
        self.loveanismash = ["Of course I love you because you are my BF, {} :heart:"]

    @commands.command(pass_context=True)
    async def doyouloveme(self, ctx, *, user : discord.Member=None):
        """Random Love Answer"""
        if ctx.message.author.id == "1<PASSWORD>":
            user = ctx.message.author
            await self.bot.say("Of course I love you because you are my BF, {} :heart:".format(user.mention))
        elif user == None:
            user = ctx.message.author
            await self.bot.say(random.choice(self.love).format(user.mention))
        else: 
            await self.bot.say(random.choice(self.loveothers).format(user.mention))
        

def setup(bot):
    bot.add_cog(doyouloveme(bot))
{'fraction_non_alphanumeric': 0.14565963707699853, 'fraction_numerical': 0.0063756743501716525, 'mean_word_length': 1.8444909344490934, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2942930', 'n_tokens_mistral': 1370, 'n_tokens_neox': 1316, 'n_words': 304}