Skip to content

Commit

Permalink
Update README.md with external news command
Browse files Browse the repository at this point in the history
  • Loading branch information
ckreisl committed Jun 6, 2024
1 parent b74dc56 commit 9a10b97
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,16 @@ To use [@CS2PostsBot](https://t.me/CS2PostsBot), simply start a chat with the bo
* `/start` - Start the bot
* `/stop` - Stop the bot
* `/help` - Get a list of available commands
* `/news` - Get the latest news posts
* `/updates` - Get the latest updates posts
* `/latest` - Get the latest post (news & updates)
* `/news` - Get the latest news post
* `/updates` - Get the latest update post
* `/external` - Sends the latest external post
* `/latest` - Get the latest post
* `/options` - Option to enable / disable news or updates posts (admin only)


### Adding the Bot to a Group

Adding the bot to a group is possible. The person adding the bot to the group will be the admin of the bot. Which means only the admin can use the `/options` command to enable / disable news or updates posts for the group chat.
Adding the bot to a group is possible. The person adding the bot to the group will be the admin of the bot. Which means only the admin can use the `/options` command to enable / disable news, updates or external news posts for the group chat.

To prevent spamming a spam protection is implemented. After 3 (default) strikes the chat will be banned and receives a timeout. This affects the whole chat not only the user who spammed.

Expand Down

1 comment on commit 9a10b97

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
__init__.py00100% 
crawler.py300100% 
cs2.py82890%30, 37, 42, 48, 103, 116–118
post.py58493%61–63, 66
store.py982475%21, 25, 29, 33, 42, 49–50, 57–58, 62, 68–69, 76, 87–88, 90, 104, 107–110, 117, 123, 132
bot
   __init__.py00100% 
   chats.py67198%95
   constants.py40100% 
   content.py76692%28, 49, 62, 90, 100, 106
   cs2.py2605080%36–41, 43–45, 269–272, 275–276, 278–279, 281, 283, 286–287, 290–291, 293–294, 296, 298, 301–302, 305–306, 308–309, 311, 313, 316–317, 327, 329–331, 333–335, 337–339, 341, 353, 389
   decorators.py330%1, 3, 5
   message.py1585763%62, 85, 96, 109, 111, 121, 123–124, 126, 128–130, 139–142, 144, 156–159, 193–194, 196, 198–199, 201–202, 204, 206–211, 213–215, 217–220, 222–227, 229–230, 232, 234, 237–238, 253–255
   options.py1052080%35, 42–44, 49–51, 53, 70, 74–75, 79, 81, 83, 86–88, 90, 165–166
   settings.py130100% 
   spam.py710100% 
   utils.py24770%17, 21–23, 31–33
parser
   __init__.py00100% 
   parser.py14192%21
   steam2telegram_html.py260100% 
   steam_list.py520100% 
   steam_news_image.py160100% 
   steam_news_youtube.py120100% 
   steam_update_heading.py210100% 
TOTAL119018184% 

Tests Skipped Failures Errors Time
121 0 💤 0 ❌ 0 🔥 3.670s ⏱️

Please sign in to comment.