fix: correct f-string typo in README debug print and update run instructions

- Fix incorrect f-string prefix 'f{' to '{' in README example bot's on_message debug print
- Replace hardcoded 'python bot.py' with generic '[your-script].py' placeholder in run instructions
- Remove license field from pyproject.toml metadata configuration
This commit is contained in:
retoor 2025-02-01 15:14:08 +00:00
parent 3628ab98f5
commit 3b5cb74d94
2 changed files with 3 additions and 4 deletions

View File

@ -63,7 +63,7 @@ class ExampleBot(Bot):
await self.send_message(data.channel_uid, result)
async def on_message(self, data):
print(f"Message from f{data.user_nick}: {data.message}")
print(f"Message from {data.user_nick}: {data.message}")
message = data.message.lower()
result = None
@ -84,6 +84,6 @@ asyncio.run(bot.run())
#### Run the bot
Make sure you have (still) activated your virtual env.
```bash
python bot.py
python [your-script].py
```
If you get the error 'python not found' or 'aiohttp not found', run `source .venv/bin/activate` again and run `python bot.py` again.
If you get the error 'python not found' or 'aiohttp not found', run `source .venv/bin/activate` again and run `python [your script].py` again.

View File

@ -6,7 +6,6 @@ build-backend = "setuptools.build_meta"
name = "snekbot"
version = "1.0.0"
readme = "README.md"
license = { file = "LICENSE", content-type="text/markdown" }
description = "Bot API for Snek chat"
authors = [
{ name = "retoor", email = "retoor@molodetz.nl" }