Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to create a new watcher or get noticed about newest replay. #69

Open
codepypl opened this issue Apr 5, 2021 · 2 comments
Open

how to create a new watcher or get noticed about newest replay. #69

codepypl opened this issue Apr 5, 2021 · 2 comments

Comments

@codepypl
Copy link

codepypl commented Apr 5, 2021

Im trying to create a discord bot to supprt full integration with freshdesk.

i wish to be notified about new replay from customer
my bot sends automatic replay to each new ticket so i thought that i will count replays and if it wil be >1 and ticket will be open then i will notify about updates

for ticket in fresh_api.tickets.list_open_tickets(): for comment in fresh_api.comments.list_comments(ticket.id): if comment.source == 0 or comment.source == 8 comment.count() > 1: await it.send(f'Pojawiła się odpowiedź do zgłoszenia: {ticket.id}') else: pass

@codepypl codepypl closed this as completed Apr 5, 2021
@codepypl codepypl reopened this Apr 6, 2021
@sjkingo
Copy link
Owner

sjkingo commented Apr 7, 2021

Hi, I'm not sure what you are trying to achieve here. Is something in this library not working for you?

@codepypl
Copy link
Author

codepypl commented Apr 7, 2021

  1. how to create a notification when requestter replays for ticket?, how to count replays ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants