Skip to content

Commit 837efcc

Browse files
committed
updated readme
1 parent 4dee35e commit 837efcc

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

README.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
![License MIT](https://img.shields.io/pypi/l/discord-ext-prometheus)
88
![Grafana Dashboard Downloads](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgrafana.com%2Fapi%2Fdashboards%2F17670&query=%24.downloads&logo=Grafana&label=downloads&color=orange)
99

10-
This is a library that makes it easy to add prometheus metrics to your Python Discord bot.
10+
This is a extension library for [discord.py](https://github.com/Rapptz/discord.py) that makes it easy to add prometheus metrics to your Python Discord bot.
1111

1212
# Installation
1313

@@ -37,7 +37,7 @@ Notes:
3737

3838
![Dashboard Preview](https://grafana.com/api/dashboards/17670/images/13525/image)
3939

40-
Available to import from [Grafana dashboards](https://grafana.com/grafana/dashboards/17670-discord-bot/)
40+
Available to import from [Grafana dashboards](https://grafana.com/grafana/dashboards/17670-discord-bot/).
4141

4242
# How to use
4343

@@ -53,14 +53,14 @@ from discord.ext import commands
5353
from discord.ext.prometheus import PrometheusCog
5454

5555
async def main():
56-
bot = commands.Bot(
57-
command_prefix='!',
58-
intents=Intents.all(),
59-
)
56+
bot = commands.Bot(
57+
command_prefix="!",
58+
intents=Intents.all(),
59+
)
6060

61-
await bot.add_cog(PrometheusCog(bot))
61+
await bot.add_cog(PrometheusCog(bot))
6262

63-
await bot.start('YOUR TOKEN')
63+
await bot.start("YOUR TOKEN")
6464

6565
asyncio.run(main())
6666
```
@@ -77,24 +77,24 @@ from discord.ext.prometheus import PrometheusCog, PrometheusLoggingHandler
7777
logging.getLogger().addHandler(PrometheusLoggingHandler())
7878

7979
async def main():
80-
bot = commands.Bot(
81-
command_prefix='!',
82-
intents=Intents.all(),
83-
)
80+
bot = commands.Bot(
81+
command_prefix="!",
82+
intents=Intents.all(),
83+
)
8484

85-
await bot.add_cog(PrometheusCog(bot))
85+
await bot.add_cog(PrometheusCog(bot))
8686

87-
@bot.listen()
88-
async def on_ready():
89-
logging.info(f'Logged in as {bot.user.name}#{bot.user.discriminator}')
87+
@bot.listen()
88+
async def on_ready():
89+
logging.info(f"Logged in as {bot.user.name}#{bot.user.discriminator}")
9090

91-
logging.info('Starting the bot')
92-
await bot.start('YOUR TOKEN')
91+
logging.info("Starting the bot")
92+
await bot.start("YOUR TOKEN")
9393

9494
asyncio.run(main())
9595
```
9696

97-
## Change the Prometheus port
97+
## Changing the Prometheus port
9898

9999
The default port is `8000` but can be changed while creating the cog.
100100

0 commit comments

Comments
 (0)