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
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