This repository has been archived by the owner on May 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCOMPLETE_INIT.js
158 lines (149 loc) ยท 10 KB
/
COMPLETE_INIT.js
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
let d = new Date();
const START = d.getTime();
resetShop = false;
if (resetShop) {
const { MongoClient, ServerApiVersion } = require('mongodb');
const mongouri = process.env.MONGODB_URI; //DO NOT RUN LOCALLY (no process.env)
const client = new MongoClient(mongouri, { useNewUrlParser: true, useUnifiedTopology: true, serverApi: ServerApiVersion.v1 });
let collectiontemp;
client.connect(err => {
collectiontemp = client.db("main").collection("shop");
// perform actions on the collection object
collectiontemp.insertMany(
[
{ name: 'Grapes', cost: 2, icon: '๐', sect: 'Food' },
{ name: 'Melon', cost: 5, icon: '๐', sect: 'Food' },
{ name: 'Watermelon', cost: 5, icon: '๐', sect: 'Food' },
{ name: 'Tangerine', cost: 3, icon: '๐', sect: 'Food' },
{ name: 'Lemon', cost: 3, icon: '๐', sect: 'Food' },
{ name: 'Banana', cost: 4, icon: '๐', sect: 'Food' },
{ name: 'Pineapple', cost: 4, icon: '๐', sect: 'Food' },
{ name: 'Mango', cost: 3, icon: '๐ฅญ', sect: 'Food' },
{ name: 'Red Apple', cost: 3, icon: '๐', sect: 'Food' },
{ name: 'Green Apple', cost: 3, icon: '๐', sect: 'Food' },
{ name: 'Pear', cost: 3, icon: '๐', sect: 'Food' },
{ name: 'Peach', cost: 3, icon: '๐', sect: 'Food' },
{ name: 'Cherries', cost: 4, icon: '๐', sect: 'Food' },
{ name: 'Strawberry', cost: 3, icon: '๐', sect: 'Food' },
{ name: 'Blueberries', cost: 3, icon: '๐ซ', sect: 'Food' },
{ name: 'Kiwi', cost: 3, icon: '๐ฅ', sect: 'Food' },
{ name: 'Tomato', cost: 4, icon: '๐
', sect: 'Food' },
{ name: 'Olive', cost: 4, icon: '๐ซ', sect: 'Food' },
{ name: 'Coconut', cost: 3, icon: '๐ฅฅ', sect: 'Food' },
{ name: 'Avocado', cost: 3, icon: '๐ฅ', sect: 'Food' },
{ name: 'Eggplant', cost: 10, icon: '๐', sect: 'Food' },
{ name: 'Potato', cost: 3, icon: '๐ฅ', sect: 'Food' },
{ name: 'Carrot', cost: 3, icon: '๐ฅ', sect: 'Food' },
{ name: 'Ear of Corn', cost: 3, icon: '๐ฝ', sect: 'Food' },
{ name: 'Hot Pepper', cost: 3, icon: '๐ถ๏ธ', sect: 'Food' },
{ name: 'Bell Pepper', cost: 3, icon: '๐ซ', sect: 'Food' },
{ name: 'Cucumber', cost: 3, icon: '๐ฅ', sect: 'Food' },
{ name: 'Leafy Green', cost: 3, icon: '๐ฅฌ', sect: 'Food' },
{ name: 'Broccoli', cost: 2, icon: '๐ฅฆ', sect: 'Food' },
{ name: 'Garlic', cost: 3, icon: '๐ง', sect: 'Food' },
{ name: 'Onion', cost: 3, icon: '๐ง
', sect: 'Food' },
{ name: 'Mushroom', cost: 3, icon: '๐', sect: 'Food' },
{ name: 'Peanuts', cost: 4, icon: '๐ฅ', sect: 'Food' },
{ name: 'Chestnut', cost: 3, icon: '๐ฐ', sect: 'Food' },
{ name: 'Bread', cost: 5, icon: '๐', sect: 'Food' },
{ name: 'Croissant', cost: 7, icon: '๐ฅ', sect: 'Food' },
{ name: 'Baguette Bread', cost: 10, icon: '๐ฅ', sect: 'Food' },
{ name: 'Flatbread', cost: 9, icon: '๐ซ', sect: 'Food' },
{ name: 'Pretzel', cost: 5, icon: '๐ฅจ', sect: 'Food' },
{ name: 'Bagel', cost: 4, icon: '๐ฅฏ', sect: 'Food' },
{ name: 'Pancakes', cost: 5, icon: '๐ฅ', sect: 'Food' },
{ name: 'Waffle', cost: 5, icon: '๐ง', sect: 'Food' },
{ name: 'Cheese Wedge', cost: 3, icon: '๐ง', sect: 'Food' },
{ name: 'Meat on the Bone', cost: 5, icon: '๐', sect: 'Food' },
{ name: 'Checken Leg', cost: 5, icon: '๐', sect: 'Food' },
{ name: 'Cut of Meat', cost: 4, icon: '๐ฅฉ', sect: 'Food' },
{ name: 'Bacon', cost: 4, icon: '๐ฅ', sect: 'Food' },
{ name: 'Hamburger', cost: 5, icon: '๐', sect: 'Food' },
{ name: 'French Fries', cost: 3, icon: '๐', sect: 'Food' },
{ name: 'Pizza', cost: 6, icon: '๐', sect: 'Food' },
{ name: 'Hot Dog', cost: 3, icon: '๐ญ', sect: 'Food' },
{ name: 'Sandwich', cost: 3, icon: '๐ฅช', sect: 'Food' },
{ name: 'Taco', cost: 3, icon: '๐ฎ', sect: 'Food' },
{ name: 'Burrito', cost: 5, icon: '๐ฏ', sect: 'Food' },
{ name: 'Tamale', cost: 5, icon: '๐ซ', sect: 'Food' },
{ name: 'Stuffed Flatbread', cost: 5, icon: '๐ฅ', sect: 'Food' },
{ name: 'Falafel', cost: 4, icon: '๐ง', sect: 'Food' },
{ name: 'Egg', cost: 3, icon: '๐ฅ', sect: 'Food' },
{ name: 'Hot Pot', cost: 12, icon: '๐ฒ', sect: 'Food' },
{ name: 'Fondue', cost: 8, icon: '๐ซ', sect: 'Food' },
{ name: 'Green Salad', cost: 3, icon: '๐ฅ', sect: 'Food' },
{ name: 'Popcorn', cost: 3, icon: '๐ฟ', sect: 'Food' },
{ name: 'Butter', cost: 2, icon: '๐ง', sect: 'Food' },
{ name: 'Salt', cost: 2, icon: '๐ง', sect: 'Food' },
{ name: 'Canned Food', cost: 3, icon: '๐ฅซ', sect: 'Food' },
{ name: 'Bento Box', cost: 7, icon: '๐ฑ', sect: 'Food' },
{ name: 'Rice Cracker', cost: 1, icon: '๐', sect: 'Food' },
{ name: 'Rice Ball', cost: 3, icon: '๐', sect: 'Food' },
{ name: 'Cooked Rice', cost: 3, icon: '๐', sect: 'Food' },
{ name: 'Curry Rice', cost: 4, icon: '๐', sect: 'Food' },
{ name: 'Ramen', cost: 4, icon: '๐', sect: 'Food' },
{ name: 'Spaghetti', cost: 5, icon: '๐', sect: 'Food' },
{ name: 'Roasted Sweet Potato', cost: 3, icon: '๐ ', sect: 'Food' },
{ name: 'Oden', cost: 3, icon: '๐ข', sect: 'Food' },
{ name: 'Sushi', cost: 4, icon: '๐ฃ', sect: 'Food' },
{ name: 'Fried Shrimp', cost: 3, icon: '๐ค', sect: 'Food' },
{ name: 'Fish Cake', cost: 3, icon: '๐ฅ', sect: 'Food' },
{ name: 'Moon Cake', cost: 3, icon: '๐ฅฎ', sect: 'Food' },
{ name: 'Dango', cost: 3, icon: '๐ก', sect: 'Food' },
{ name: 'Dumpling', cost: 3, icon: '๐ฅ', sect: 'Food' },
{ name: 'Fortune Cookie', cost: 3, icon: '๐ฅ ', sect: 'Food' },
{ name: 'Oyster', cost: 4, icon: '๐ฆช', sect: 'Food' },
{ name: 'Ice Cream Cone', cost: 3, icon: '๐ฆ', sect: 'Food' },
{ name: 'Shaved Ice', cost: 3, icon: '๐ง', sect: 'Food' },
{ name: 'Ice Cream', cost: 3, icon: '๐จ', sect: 'Food' },
{ name: 'Doughnut', cost: 3, icon: '๐ฉ', sect: 'Food' },
{ name: 'Cookie', cost: 3, icon: '๐ช', sect: 'Food' },
{ name: 'Birthday Cake', cost: 7, icon: '๐', sect: 'Food' },
{ name: 'Shortcake', cost: 4, icon: '๐ฐ', sect: 'Food' },
{ name: 'Cupcake', cost: 3, icon: '๐ง', sect: 'Food' },
{ name: 'Pie', cost: 4, icon: '๐ฅง', sect: 'Food' },
{ name: 'Chocolate Bar', cost: 2, icon: '๐ซ', sect: 'Food' },
{ name: 'Candy', cost: 1, icon: '๐ฌ', sect: 'Food' },
{ name: 'Lollipop', cost: 1, icon: '๐ญ', sect: 'Food' },
{ name: 'Custard', cost: 3, icon: '๐ฎ', sect: 'Food' },
{ name: 'Honey Pot', cost: 3, icon: '๐ฏ', sect: 'Food' },
{ name: 'Baby Bottle', cost: 3, icon: '๐ผ', sect: 'Food' },
{ name: 'Glass of Milk', cost: 3, icon: '๐ฅ', sect: 'Food' },
{ name: 'Coffee', cost: 3, icon: 'โ', sect: 'Food' },
{ name: 'Teapot', cost: 3, icon: '๐ซ', sect: 'Food' },
{ name: 'Tea', cost: 3, icon: '๐ต', sect: 'Food' },
{ name: 'Sake', cost: 3, icon: '๐ถ', sect: 'Food' },
{ name: 'Champagne', cost: 3, icon: '๐พ', sect: 'Food' },
{ name: 'Wine Glass', cost: 3, icon: '๐ท', sect: 'Food' },
{ name: 'Cocktail Glass', cost: 3, icon: '๐ธ', sect: 'Food' },
{ name: 'Tropical Drink', cost: 3, icon: '๐น', sect: 'Food' },
{ name: 'Beer Mug', cost: 3, icon: '๐บ', sect: 'Food' },
{ name: 'Tumbler', cost: 3, icon: '๐ฅ', sect: 'Food' },
{ name: 'Soda', cost: 3, icon: '๐ฅค', sect: 'Food' },
{ name: 'Bubble Tea', cost: 3, icon: '๐ง', sect: 'Food' },
{ name: 'Beverage Box', cost: 30, icon: '๐ง', sect: 'Food' },
{ name: 'Mate', cost: 3, icon: '๐ง', sect: 'Food' },
//Weapons
// { name: 'Swords_special', cost: 3, icon: 'โ๏ธ', sect: 'Weapons', double: false },
{ name: 'Boomerang', cost: 300, icon: '๐ช', sect: 'Weapons', double: false, def: false },
{ name: 'Crossbow', cost: 200, icon: '๐น', sect: 'Weapons', double: true, def: false },
{ name: 'Knife', cost: 20, icon: '๐ช', sect: 'Weapons', double: false, def: false },
{ name: 'Dagger', cost: 60, icon: '๐ก', sect: 'Weapons', double: false, def: false },
{ name: 'Shield', cost: 100, icon: '๐ก', sect: 'Weapons', double: false, def: true },
{ name: 'Axe', cost: 40, icon: '๐ช', sect: 'Weapons', double: false, def: false },
{ name: 'Trident', cost: 140, icon: '๐ฑ', sect: 'Weapons', double: false, def: false },
{ name: 'Scissors', cost: 10, icon: 'โ๏ธ', sect: 'Weapons', double: false, def: false },
//Potions (of varying sections)
{ name: 'HP Potion', cost: 20, icon: 'CUSTOM|healing_potion', sect: 'HP' },
{ name: 'MP Potion', cost: 15, icon: 'CUSTOM|mana_potion', sect: 'MP' },
{ name: 'Super HP Potion', cost: 50, icon: 'CUSTOM|superior_healing_potion', sect: 'HP' },
{ name: 'Super MP Potion', cost: 40, icon: 'CUSTOM|superior_mana_potion', sect: 'MP' }
]);
});
client.close().then(function() {
const END = d.getTime();
console.log(`Total time in SECONDS: ${(((END - START) % 60000) / 1000).toFixed(0)} ms!`);
});
} else {
console.log('To reset the main shop, please change the variable "resetShop" in the "COMPLETE_INIT.js" file to true');
}