#A Different Shopkeeper

10 messages · Page 1 of 1 (latest)

brittle cave
#

@mighty talon husband here,
I've been her code monkey, making bots for her.

This is a different shopkeeper. I am not hosting it, that will allow you to just install it.

This is raw code that you need to run and create your own bot for.
I will also say this is not a polished piece of software.

Here is the github page for the code.

https://github.com/erik-m-8/discord-otto

Thank you @carmine hornet for making the api that made this possible.

carmine hornet
#

Hey, I’m trying to set up your bot on my own server, but it won’t start because config is undefined. I’m getting this error:

TypeError: Cannot read properties of undefined (reading 'hide_non_roles') at this.buildContent(data, guildId, config.hide_non_roles)

So I’m assuming I missed a setup step, but if the bot can’t even run, how am I supposed to do the ./setup channel part?

#

Yeyy, I fixed it by changing this line:
const content = this.buildContent(data, guildId, config.hide_non_roles);
to:
const content = this.buildContent(data, guildId, config.hide_non_roles ?? false);
That way, the bot won’t crash when config doesn’t exist, since it falls back to false

#

Not gonna lie, im thinking about hosting it myself and storing all the data somewhere, so I can maybe build a webpage with the full shop history. Right now, the latest starweavers (and other stuff) is either done manually or you ahve to ask around to get files from other bots, etc... It'd be pretty sick to have a site that shows the complete shop timeline and updates in real time, maybe with some small graphs and stats too

#

I mean, its not really related to the discord bot itself, but the discord bot is what gave me the idea lol

brittle cave
#

I thought about storing the values with the listener to having a record of when stuff dropped, but didnt want to setup an actual database. thats why its using sqllite.

Theres a bug somewhere in the code that causes a process to hang but it only shows up like once every 24 hours

I want to eventually separate the listener and the bot completely so that the listener just pulls data and sends events that a bot can listen for and update when an event is pushed

carmine hornet
#

If you manage to do something like that I'll be interested

brittle cave
#

roles have to match a specific list, I didn't make it smart enough to find variations

Here are the names
Seeds:
Carrot
Cabbage
Strawberry
Aloe
Beet
Rose
Fava Bean
Delphinium
Blueberry
Apple
Orange Tulip
Tomato
Daffodil
Corn
Watermelon
Pumpkin
Echeveria
Pear
Gentian
Coconut
Pine Tree
Banana
Lily
Camellia
Squash
Burros Tail
Mushroom
Cactus
Bamboo
Poinsettia
Violet Cort
Chrysanthemum
Grape
Pepper
Lemon
Passion Fruit
Dragon Fruit
Cacao
Lychee
Sunflower
Starweaver
Dawn Celestial
Moon Celestial

Eggs:
Common Egg
Uncommon Egg
Rare Egg
Legendary Egg
Snow Egg
Mythical Egg
Winter Egg
Horse Egg

oak kayak
#

Impressed with the bot