Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pyPrivnote as pn
- import discord
- import os
- import requests
- import json
- import subprocess
- import colorama
- from colorama import Fore,init
- from discord.ext import commands
- import ctypes
- init()
- bot = commands.Bot(command_prefix='>', description='''Privnote Claimer''', self_bot=True)
- bot.remove_command('help')
- config = open('config.json', 'r')
- data = json.load(config)
- ctypes.windll.kernel32.SetConsoleTitleW("Privnote Claimer - Lifty Community | Status: Starting")
- ui = '''
- @Lifty Community
- ______ _ _ _
- | ___ \ (_) | | (_)
- | |_/ / __ ___ _____| | __ _ _ _ __ ___ ___ _ __
- | __/ '__| \ \ / / __| |/ _` | | '_ ` _ \ / _ \ '__|
- | | | | | |\ V / (__| | (_| | | | | | | | __/ |
- \_| |_| |_| \_/ \___|_|\__,_|_|_| |_| |_|\___|_|
- [Auto Claiming Privnotes from Discord]
- '''
- print(Fore.MAGENTA+ui)
- print()
- @bot.event
- async def on_ready():
- print(' Logged in as : '+str(bot.user))
- print()
- ctypes.windll.kernel32.SetConsoleTitleW("Privnote Claimer - Lifty Community | Status: Active")
- token = data['Token']
- @bot.event
- async def on_message(message):
- if "https://privnote.com/" in message.content:
- note_text = pn.read_note(message.content)
- print(Fore.GREEN+"Found note: "+Fore.YELLOW+note_text+" "+(message.author.name))
- f = open("claimed.txt", "a")
- f.write(note_text+"\n")
- f.close()
- @bot.command()
- async def ready(ctx):
- await ctx.send('Bot online')
- bot.run(token,bot=False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement