I am 100% new to programming and learning Python.
I'm trying to build a bot that joins an IRC server where users are posting phone numbers.
I've done some Googling but can't find anything like this, although I'm sure it's simple to build since a human could easily be doing this with around 1 minute of instruction.
Some users are pasting them like this:
(123) 456-7890
Others are querying an IRC Bot with !phn 123 456 7890
The issue is that users are typing these in different formats.
Ex:
(123) 456 7890
123-456-7890
How do I write a bot that stays in chat, looks out for when these phone numbers get posted, and saves each one into the same text file (just adding a line each time)?
Any help would be much appreciated.
What I have tried:
Looking up IRC bots, watching videos...I don't even know where to begin.