# Welcome

This is official Docs website for Pinglik. Pinglik is a simple website monitoring Discord bot. Feel free to invite it to your server and keep your sites online.

## Important informations:

{% hint style="success" %}
**Invite Links**: [with ADMIN perms](https://discord.com/api/oauth2/authorize?client_id=783589073234952233\&permissions=8\&scope=bot) or [Normal Perms](https://discord.com/oauth2/authorize?client_id=783589073234952233\&scope=bot\&permissions=388161)
{% endhint %}

{% hint style="info" %}
**Support server:** [**https://pinglik.eu/support**](https://pinglik.eu/support)

**Forum:** [https://forum.pinglik.eu](https://forum.pinglik.eu/)
{% endhint %}

🙏*If you want to help us, please **share this bot with your friends** to help to us grow.*

[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/W7W3315UN)&#x20;


# Creating webserver

Here you can find example codes of webservers to make your projects pingable by Pinglik.

> If you want to host your bot on repl.it or similiar service you need to create webserver for your project to make your project pingable. It means that you need to have there very simple website which will be pinged by Pinglik bot every 1 min so your project will stay online for 24/7. Here you can find example codes of webservers.

## *`Javascript (NodeJS) webservers:`*

### Express webserver:

```javascript
// express Pinglik webserver example code
const express = require("express");
const app = express();
const port = process.env.PORT || 3000;

app.get("/", (req, res) => {
  res.send(
    "<code>Hello, this project is using <a href='https://pinglik.eu' target='_blank'>Pinglik</a>!</code>"
  );
});

app.listen(port, () => {
  console.log(`📡 Pinglik webserver has started!`);
});
```

### Http webserver:

```javascript
// http Pinglik webserver example code
const http = require("http");
const port = process.env.PORT || 3000;
const server = http
  .createServer((req, res) => {
    res.writeHead(200, { "Content-Type": "text/html" });
    res.end(
      "<code>Hello, this project is using <a href='https://pinglik.eu' target='_blank'>Pinglik</a>!</code>"
    );
  })
  .listen(port);

console.log(`📡 Pinglik webserver has started!`);
```

![Example response](/files/-MPEb6tPtCqSqs78yqUs)

## *`Python webservers:`*

### Flask webserver:

```python
# flask Pinglik webserver example code

from flask import Flask
from threading import Thread

app = Flask(__name__)

@app.route('/')
def main():
    return "<code>Hello, this project is using <a href='https://pinglik.eu' target='_blank'>Pinglik</a>!</code>"

def run():
    app.run(host="0.0.0.0", port=3000)

def keep_alive():
    server = Thread(target=run)
    server.start()
    print("📡 Pinglik webserver has started!")

keep_alive()
```


# Info

Here you can find guides - How to use the bot

Here you can find guides - How to use the bot

## Guides

{% content-ref url="/pages/-MNhWQVCDFFC1XXOqbmQ" %}
[Adding monitors](/how-to-use-the-bot/adding-monitors)
{% endcontent-ref %}

{% content-ref url="/pages/-MNhaxCRLQWSxF6uBWoN" %}
[Getting list of all your monitors](/how-to-use-the-bot/getting-list-of-all-your-monitors)
{% endcontent-ref %}

{% content-ref url="/pages/-MNh\_y5IXg71Tl1PHZ-d" %}
[Checking status of monitors](/how-to-use-the-bot/checking-status-of-monitors)
{% endcontent-ref %}

{% content-ref url="/pages/-MNhcBlAswYwrDjR80sc" %}
[Removing monitors](/how-to-use-the-bot/removing-monitors)
{% endcontent-ref %}

{% content-ref url="/pages/-MNhfW6IL3a01IcSz2Ni" %}
[FAQ and common problems](/how-to-use-the-bot/faq-and-common-problems)
{% endcontent-ref %}

## Notes

* Make sure to have enabled DMs on Discord, because bot is replying to some commands to your DMs for privacy reasons.
* If you need help, go to [**https://pinglik.eu/support**](https://pinglik.eu/support)


# Adding monitors

Guide how to add monitors

You can add your monitors by typing`p!add <link>`.&#x20;

![Adding replit site as monitor](/files/-MNhZkZdO5EYgNGa_Gmf)

After that you will get a DM with information about the addition of the link.

![DM information](/files/-MNh_EfeZxgitCenpYts)

Now your link (monitor) will be pinged every 1 min.

**Tip:** Use `p!webping <link>` before adding monitor, to check if is your link pingable by Pinglik.


# Getting list of all your monitors

Guide how to get list of all your monitors

You can check which all monitors are present in your account by typing `p!monitors`&#x20;

![Getting list of monitors](/files/-MNhbBTMz1K15phdJSIL)

You will get DM with all monitors.

![DM with all monitors](/files/-MNhbze0H_urjnN3pb1v)


# Checking status of monitors

Guide how to check status of your monitor

You can check the status of the monitor by typing `p!status <link>`

![Checking status of replit monitor](/files/-MNhaILpKdHV_HOa4ahD)

You will get a DM with the information about the link.

![DM information](/files/-MNhadtfhtUTDjZnvr39)

**Tip:** If you don't know what does your status code mean, use command`p!http-status <status code>`


# Removing monitors

Guide how to remove your monitor

You can remove your monitor by typing `p!remove <link>`.

![Removing replit site monitor](/files/-MNhe2BdeeiZ7gvB1cLA)

You will get DM about removal of the monitor.

![DM information](/files/-MNheBkhJiTGUvxx5cgV)


# FAQ and common problems

Common problems faced by user and frequently asked questions.

### Error: You don't have account on Pinglik. You can\`t use this command.

![If you are getting something like this](/files/-MNhgmli2YZj-xPsx3LH)

**Solution:**

Join our [Support server](https://discord.gg/UgG8CEKKVx) and ask us for creating free account for you there.

### Bot is offline or bot is not reacting to commands

Please report the problem to [Support server](https://discord.gg/UgG8CEKKVx) or use [Forum](https://forum.pinglik.eu).

### My problem is not listed here

Join [Support server](https://discord.gg/UgG8CEKKVx) and open new modmail support thread there or use [Forum](https://forum.pinglik.eu).


