Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rednexie/growtopia
growtopia worlds database
https://github.com/rednexie/growtopia
Last synced: 17 days ago
JSON representation
growtopia worlds database
- Host: GitHub
- URL: https://github.com/rednexie/growtopia
- Owner: Rednexie
- License: mit
- Created: 2024-06-16T17:54:41.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-21T15:11:25.000Z (5 months ago)
- Last Synced: 2024-06-22T07:46:58.107Z (5 months ago)
- Size: 9.03 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# growtopia
growtopia worlds databaseSQLite Database of Growtopia World Names
| name | status |
|------|-----------|
| world name | indicates the status |
| TEXT | INTEGER |### Example
| name | status |
|------|-----------|
| xvqw | 1 |Means that world is not banned and its already created.
| name | status |
|------|-----------|
| vaxt | 0 |Means that world is banned or not yet created.
### Usage
*Javascript(Node.js)*
In terminal to install the required library:
```bash
npm install better-sqlite3
```index.js
```js
const Database = require('better-sqlite3')
const db = new Database('./growtopia.sqlite')const your_name = 'turk' // The world you want to check
cons row = db.prepare('SELECT * FROM growtopia WHERE name = ?').get(your_world_name);console.log(
// returns { name: 'turk', status: 1 }```
In terminal to run the file:
```bash
node index.js
```---
*Python*
In terminal to install the required library:
```bash
pip install sqlite3
```main.py
```python
import sqlite3database = sqlite3.connect('./growtopia.sqlite')
cursor = database.cursor()your_name = 'turk' # The world you want to check
cursor.execute('SELECT * FROM growtopia WHERE name = ?', (your_name))
row = cursor.fetchone()
print(row)
# returns ("turk", 1)```
In terminal to run the file:
```bash
python main.py
```