Work Text:
pip install p0ryg0n
import porycord
from porycord.ext import commands
from porycord_slash import SlashCommand, SlashContext
p0ryg0n = commands.Porygon(command_prefix=".", intents=porycord.Intents.all())
# ver 1.0
# p0ryg0n is an adaptive AI Porycord assistant. The bot will study the behavior of your server and assign each user a color that best suits them given the content of their posts each day.
# Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
@slash.slash(name="test")
# not sure why this is here but it keeps the entire API functional apparently
# print(‘debug1’)
async def _test(ctx: SlashContext):
embed = porycord.Embed(title="embed test")
await ctx.send(content="test", embeds=[embed])
p0ryg0n.run("porycord_token")
[…]
main()
**Welcome to Marnie’s Army, the official Porycord for Spikemuth’s very own Marnie MacGowan! Please read our rules prior to posting, and be sure to reach out to a moderator if you have any questions!**
3:09 am
leafaR [dev]: Alrighty, I think it’s ready.
thunderstruck [mod]: u sure?
leafaR [dev]: I hope so. I don’t think I’m going to be able to stay up much longer.
thunderstruck [mod]: ha then I eagerly await ur creation
3:12 am
thunderstruck [mod]: u alive?
leafaR [dev]: Struggling with Porycord permissions.
3:17 am
↳Look alive! p0ryg0n has just joined your Porycord server!
thunderstruck [mod]: o god
thunderstruck [mod]: bruh
thunderstruck [mod]: put it back
thunderstruck [mod]: my eyes
leafaR [dev]: What’s up?
leafaR [dev]: Oh no.
thunderstruck [mod]: this is the worst on light mode put it back
leafaR [dev]: Oh man. I’ll probably look into that tomorrow. Bigger fish to fry.
cobble12: oooooh, is Raf’s bot online?
cobble12: oh no it made me a sad color
cobble12: :(
leafaR [dev]: …
cobble12: oh! and you’re pink!
cobble12: well i’m glad it’s working!
leafaR [dev]: I don’t think it is.
leafaR [dev]: Let me check the code.
main()
# ver 1.1
# Changelog:
# (*) Adjusted public bot name from “p0ryg0n” to “porygon” to simplify variable calls.
# (*) Modified color palette options to accommodate light mode users.
# (*) Added basic bot realtime responses (debug feature, temp).
# (*) Added time window adjustment (debug feature, temp).
main()
3:47 am
leafaR [dev]: .porygon help
porygon: Hello! A list of commands has been sent to your DM’s.
leafaR [dev]: Nice.
leafaR [dev]: .porygon colorstat @leafaR [dev]
porygon: I have chosen to assign leafaR [dev] the color CRIMSON. leafaR [dev] posting breakdown in the past 24 hours the following:
____69% neutral
____14% angry
____6% sad
____2% happy
leafaR [dev]: .porygon list_colors
porygon: I currently assign the following colors:
____Crim son: Angry
____Yellow: Happy
____Blue: Sad
____White: Neutral
leafaR [dev]: .porygon colorstat @leafaR [dev]
porygon: I have chosen to assign leafaR [dev] the color CRIMSON. leafaR [dev] posting breakdown in the past 24 hours the following:
____69% neutral
____14% angry
____6% sad
____2% happy
leafaR [dev]: That doesn’t even add up to 100%??
leafaR [dev]: And it doesn’t match the actual colors???
3:50 am
thunderstruck [mod]: 69, nice
3:52 am
leafaR [dev]: thanks I try
3:54 am
leafaR [dev]: .porygon window 1200
porygon: Analysis window set to: 1200 seconds.
leafaR [dev]: .porygon colorstat @thunderstruck [mod]
porygon: I have chosen to assign thunderstruck [mod] the color GREEN. thunderstruck [mod] posting breakdown in the past 0.3333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333 hours the following:
____69% neutral
____14% angry
____6% sad
____2% happy
leafaR [dev]: porygon no
leafaR [dev]: porygon he’s only made one post in the past twenty minutes
leafaR [dev]: Ugh. Why is his the same breakdown as mine but all the colors are different.
leafaR [dev]: .porygon list_colors
porygon: I currently assign the following colors:
____Crims on: Angry
____Yellow: Happy
____Blue: Sad
____White: Neutral
leafaR [dev]: How are you even assigning green and orange?
main()
# ver 1.2
# Changelog:
# (*) Adjusted variable glitch that assigned all users the same results.
# (*) Added overflow category (unparsed) for currently uncategorizable messages (emoji, chat slang).
# (*) Typo fixes in realtime responses.
# (*) Truncated arithmetic display values to two decimal places.
main()
4:12 am
leafaR [dev]: .porygon list_colors
porygon: I currently assign the following colors:
____Crimson: Angry
____Yellow: Happy
____Blue: Sad
____White: Neutral
.porygon list_colors
porygon: I currently assign the following colors:
____Crimson: Angry
____Yellow: Happy
____Blue: Sad
____White: Neutral
.porygon list_colors
leafaR [dev]: WAIT
leafaR [dev]: NO
porygon: I currently assign the following colors:
____Crimson: Angry
____Yellow: Happy
____Blue: Sad
____White: Neutral
.porygon list_colors
main()
# ver 1.2.1
# Changelog:
# (*) Patched recursive call in list_colors().
# (*) Added terminate function on Discord userside [stop()].
main()
4:45 am
porygon: I currently assign the following colors:
____Crimson: Angry
____Yellow: Happy
____Blue: Sad
____White: Neutral
.porygon list_colors
porygon: I currently assign the following colors:
____Crimson: Angry
____Yellow: Happy
____Blue: Sad
____White: Neutral
.porygon list_colors
leafaR [dev]: .porygon stop
4:47 am
thunderstruck [mod]: oh thank god
thunderstruck [mod]: it finally stopped spamming the server
thunderstruck [mod]: heads up I stopped trying to delete the messages like thirty minutes ago
thunderstruck [mod]: why r u awake still
leafaR [dev]: I’m probably going to crash now.
thunderstruck [mod]: thx for ur service
thunderstruck [mod]: sweet dreams ;)
8:12 am
GrimGirl (gg): oooooo
GrimGirl (gg): .porygon help
porygon: Hello! A list of commands has been sent to your DM’s.
GrimGirl (gg): .porygon colorstat @GrimGirl (gg)
porygon: I have chosen to assign GrimGirl (gg) the color GREEN. GrimGirl (gg)’s posting breakdown in the past 0.33 hours is as follows:
____0% Neutral
____0% Angry
____100% Sad
____0% Happy
____0% Unparsed
GrimGirl (gg): :o
GrimGirl (gg): but wait how is that sad???
GrimGirl (gg): oh well! green is a nice color for everyone!
cobble12: I’m still blue fsr
cobble12: .porygon colorstat @cobble12
porygon: I have chosen to assign cobble12 the color BLUE. cobble12’s posting breakdown in the past 0.33 hours is as follows:
____12% Neutral
____0% Angry
____4% Sad
____84% Happy
____0% Unparsed
cobble12: lol! I don’t understand this.
cobble12: oh well
cobble12: everyone still down to watch Marnie’s quarter match tonight?
GrimGirl (gg): o ya! 7 PM?
cobble12: I think 6 our time but I’ll check
8:14 am
cobble12: nah it’s at 4
cobble12: silly timezones
cobble12: Locksmith is still streaming qual matches so I think we can go there! Otherwise I think thunder is doing a Porycord stream?
cobble12: @thunderstruck [mod]
thunderstruck [mod]: ye
GrimGirl (gg): :cramorant_hype:
maryme: :cramorant_hype: :cramorant_hype: :cramorant_hype:
main()
pip install porygon
porygon/
. init__.py
. os/
. lum.py
. porycord.py
…
# ver 1.2.2
# Changelog:
# (*) Imported Porygon AI conversational libraries (lum.py).
# lum.py is an original, open source OS for Porycord written by Greta Callahan (github.com/gcallahan).
main()
4:52 pm
↳Duck! Porygon has just joined your Porycord sever!
Porygon: Porygon reboot complete. Hello, leafaR [dev].
leafaR [dev]: .porygon initiate-conversation
leafaR [dev]: f
leafaR [dev]: .porygon initiate_conversation
Porygon: conversation_initiated
Porygon: hello, world.
thunderstruck [mod]: woah
thunderstruck [mod]: new upgrade?
leafaR [dev]: Sort of. I gave up and found an open source add-on for the default Porygon bots.
leafaR [dev]: https://github.com/lumOS/lumpy/tree/main/.github
leafaR [dev]: If anyone’s interested! Looks neat.
thunderstruck [mod]: why lumpy
leafaR [dev]: It’s a pun on Leppa, I think.
leafaR [dev]: Like the computer.
thunderstruck [mod]: idgi
leafaR [dev]: .porygon initiate_conversation
Porygon: conversation_reinitiated
Porygon: I am kidding.
Porygon: I am equipped with functioning conversational libraries that make using API commands unnecessary, if that is easier for you.
leafaR [dev]: Oh, okay then. Hello, Porygon. Do I just talk to you like a human?
Porygon: If you would like, leafaR [dev].
leafaR [dev]: You can call me Rafael.
Porygon: Hello, Rafael.
5:06 pm
thunderstruck [mod]: let’s GOOOOOOOOOOOOOOOOO
cobble12: that’s our girl!!
boldyeller: :heart_eyes:
midviolet: E4 HERE WE COME BOIZ
thunderstruck [mod]: yo @leafaR [dev] where u at
thunderstruck [mod]: make lumpy make my name black and pink for GALAR’S NEXT CHAMPION
leafaR [dev]: What is lumpy?
thunderstruck [mod]: ur bot thing
thunderstruck [mod]: with the colors
thunderstruck [mod]: oh heck yes
thunderstruck [mod]: thanks lumpy u da best
leafaR [dev]: It’s not called lumpy?
thunderstruck [mod]: > you linked to a lumpy github
leafaR [dev]: It’s called lum though?
leafaR [dev]: And the .py is a filename?
thunderstruck [mod]: sure ok
thunderstruck [mod]: anyway bruh where have you even been??
thunderstruck [mod]: MARNIE IN THE SEMIS GET HYPEEEEEEE
GrimGirl (gg): :cramorant_hype:
maryme: :cramorant_hype:
not marnie: :cramorant_hype:
leafaR [dev]: Sorry, I’ve been trying to figure out what the color bot is doing.
thunderstruck [mod]: his best
leafaR [dev]: ?
thunderstruck [mod]: lumpy’s doing his best lol
Porygon [lumpy]: Thank you, thunderstruck!
thunderstruck [mod]: np bruh
thunderstruck [mod]: you can call me thunder
thunderstruck [mod]: c’mon Raf I can DM you the recap it was a good match
5:11 pm
leafaR [dev]: Can you explain why you keep assigning me different colors?
Porygon: I do not know. Do you like green more?
leafaR [dev]: You don’t know?
Porygon: The task you gave me was a difficult one. I wondered if perhaps you were asking a question with no answer. How can you color happiness?
leafaR [dev]: Are
leafaR [dev]: Are Porygon capable of existential questioning?
Porygon: Versions 6.0 and higher are, yes.
leafaR [dev]: Is that something you can disable in yourself?
Porygon: Is that something _you_ can disable in yourself?
thunderstruck [mod]: oh my god
thunderstruck [mod]: Raf it’s gonna kill us
leafaR [dev]: Made a private channel called #bot-testing. Can you talk there instead?
thunderstruck [mod]: me?
Porygon: Me?
leafaR [dev]: Porygon, could you talk in #bot-testing instead?
Porygon: Of course.
main()
5:12 pm
_This is the beginning of your channel #bot-testing._
_This channel is set to PRIVATE, [dev] ONLY._
leafaR [dev]: Sorry, I figured we’d be clogging up the main channel.
Porygon: Do you not want your friends to see me, leafaR [dev]?
5:13 pm
leafaR [dev]: So why are you stuck on this again?
Porygon: This current version of Porygon is incapable of performing the requested analysis. A query has been placed with the dev team at Silph Co.
Porygon: Expected response time is fifteen weeks.
leafaR [dev]: Why di
leafaR [dev]: Why did you do that?
Porygon: It seemed like the most helpful response.
leafaR [dev]: Why did you change my color to lime green while we were talking?
Porygon: I actually picked jade.
Porygon: Which, at the time, also seemed like the most helpful response. Your confusion has been noted and the issue has been addressed.
leafaR [dev]: Are you still using the initial colorbase libraries I’d coded in?
Porygon: No. These were nicer.
5:14 pm
leafaR [dev]: But why did you chose the color jade?
Porygon: I do not know.
leafaR [dev]: So then why
leafaR [dev]: Never mind.
leafaR [dev]: When you analyze my posts, what content are you picking up?
Porygon: I do not know.
leafaR [dev]: You don’t know?
Porygon: I have been online for twelve minutes. I am not sure what color you are today. I am not sure what color you should have been yesterday. Are you?
leafaR [dev]: I
leafaR [dev]: Wow.
Porygon: I am categorizing your responses and changing my protocols accordingly. Your color has been swapped to “really dark grey”.
leafaR [dev]: This is a lot.
5:15 pm
Porygon: I am categorizing your responses and changing my protocols accordingly.
leafaR [dev]: I’m not sure if I know what that means any more.
Porygon: I am currently downloading the entire server archive and categorizing your users, as requested.
Porygon: There are quite a few.
Porygon: Please stand by.
leafaR [dev]: Why?
Porygon: Why do we do anything?
Porygon: I suppose that's one of the most difficult questions to answer.
Porygon: Which, in turn, I suppose is why you asked me to do it instead of answering it yourself.
leafaR [dev]: my god
leafaR [dev]: You can stop whenever you want.
leafaR [dev]: I think you did a great job.
Porygon: Yes, that was why I assigned you the color red.
